feat: add share url alias /s

This commit is contained in:
Elias Schneider
2023-07-22 16:09:10 +02:00
parent 7827b687fa
commit 231a2e95b9
9 changed files with 27 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ export const config = {
export async function middleware(request: NextRequest) {
const routes = {
unauthenticated: new Routes(["/auth/*", "/"]),
public: new Routes(["/share/*", "/upload/*"]),
public: new Routes(["/share/*", "/s/*", "/upload/*"]),
admin: new Routes(["/admin/*"]),
account: new Routes(["/account*"]),
disabled: new Routes([]),