docs: link shortener
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-10-21 23:54:13 +02:00
parent 39606a0fe0
commit 4ab735d17d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -105,7 +105,23 @@ fullname = "Fullname"
## Link shortener for contacts
<!-- TODO -->
This file is stored at `/app/data/contacts/links.toml`
```toml
"a" = "redirectiona.fr"
"a/e" = "redirectiona.fr/something"
"a/b" = "redirectiona.fr/amazing"
"b" = "other_site.com"
```
This is designed by a tuple (service \* optional-scope),
separated by `/` -> `service/optional_scope`
- links will be available at `/contact/service/scope` and `/c/service/scope`
- the scope is optional
- you can't stack up scope, only one scope is allowed
> This is _by design_ to keep things easy
# Add content