18 lines
437 B
Markdown
18 lines
437 B
Markdown
|
# slink
|
||
|
|
||
|
A URL shortener
|
||
|
|
||
|
## design
|
||
|
|
||
|
I made this abomination an "API" with the intention of people being able to integrate it into their own scripts and tools.
|
||
|
|
||
|
The `slink-keys.fish` script populates a token in every users home directory that they can use to create shortened URLs.
|
||
|
|
||
|
`shortlink` is a example script showing how to use the "API"
|
||
|
|
||
|
a request json looks like:
|
||
|
|
||
|
```json
|
||
|
{"url":"https://example.com/some/really/long/path"}
|
||
|
```
|