1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00

docs: Fix typo, and slight change in grammar

This commit is contained in:
Sayantan Santra 2024-04-01 00:47:25 -05:00
parent 2594051a54
commit 917be6ade4
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -122,7 +122,7 @@ default, the auto-generated links are adjective-name pairs. You can use UIDs by
the `slug_style` variable to `UID`. You can also set the length of those slug by setting the `slug_style` variable to `UID`. You can also set the length of those slug by setting
the `slug_length` variable. It defaults to 8, and a minimum of 4 is supported. the `slug_length` variable. It defaults to 8, and a minimum of 4 is supported.
## CLI usage instructions ## Instructions for CLI usage
The application can be used from the terminal using something like `curl`. In all the examples The application can be used from the terminal using something like `curl`. In all the examples
below, replace `http://localhost:4567` with where your instance of `chhoto-url` is accessible. below, replace `http://localhost:4567` with where your instance of `chhoto-url` is accessible.
@ -136,7 +136,7 @@ request, please add `-b cookie.txt` to use this authentication cookie.
To add a link, do To add a link, do
```bash ```bash
curl -X POST -d '{"shhortlink":"<shortlink>", "longlink":<longlink>}' http://localhost:4567/api/new curl -X POST -d '{"shortlink":"<shortlink>", "longlink":"<longlink>"}' http://localhost:4567/api/new
``` ```
Send an empty `<shortlink>` if you want it to be auto-generated. The server will reply with the generated shortlink. Send an empty `<shortlink>` if you want it to be auto-generated. The server will reply with the generated shortlink.