Skip to content

Commit

Permalink
remove references to links.wtf
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Stanley <[email protected]>
  • Loading branch information
lrstanley committed Apr 10, 2022
1 parent ccaf3d6 commit 7d6b82c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,21 +210,21 @@ func main() {

## API

Shortening a link is quite easy. simply send a `POST` request to `https://links.wtf/add`,
Shortening a link is quite easy. simply send a `POST` request to `https://example.com/add`,
which will return JSON-safe information as shown below:

```
$ curl --data "url=http://google.com" https://links.wtf/add
{"url": "https://links.wtf/27f4", "success": true}
$ curl --data "url=http://google.com" https://example.com/add
{"url": "https://example.com/27f4", "success": true}
```

#### Password protection

You can also password protect a link, simply by adding a `password` variable to the payload:

```
$ curl --data 'url=https://google.com/example&encrypt=y0urp4$$w0rd' https://links.wtf/add
{"url": "https://links.wtf/abc123", "success": true}
$ curl --data 'url=https://google.com/example&encrypt=y0urp4$$w0rd' https://example.com/add
{"url": "https://example.com/abc123", "success": true}
```

<!-- template:begin:support -->
Expand Down

0 comments on commit 7d6b82c

Please sign in to comment.