From 4ab735d17d33881bf766028fbd78fb2ec1c8cf94 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 21 Oct 2023 23:54:13 +0200 Subject: [PATCH] docs: link shortener --- Documentation.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation.md b/Documentation.md index cf3e0d6..07374b1 100644 --- a/Documentation.md +++ b/Documentation.md @@ -105,7 +105,23 @@ fullname = "Fullname" ## Link shortener for contacts - +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