Add backend shortlinks for sharing.

Creates /api/share to mint /s/:code redirects, backed by Vercel KV with a local fallback.
This commit is contained in:
b1rdmania
2025-12-26 15:03:23 +00:00
parent f671aa3b57
commit 54136cf11c
5 changed files with 192 additions and 7 deletions
+4
View File
@@ -22,6 +22,10 @@
"src": "/health",
"dest": "server/src/server.ts"
},
{
"src": "/s/(.*)",
"dest": "server/src/server.ts"
},
{
"src": "/embed",
"dest": "/embed.html"