|
@@ -1,7 +1,7 @@
|
|
|
import { NextRequest, NextResponse } from "next/server";
|
|
import { NextRequest, NextResponse } from "next/server";
|
|
|
import { getSessionCookie } from "better-auth/cookies";
|
|
import { getSessionCookie } from "better-auth/cookies";
|
|
|
|
|
|
|
|
-const publicPaths = ["/auth", "/api/v1", "/api/public", "/api/internal", "/api/webhooks", "/share", "/terms"];
|
|
|
|
|
|
|
+const publicPaths = ["/auth", "/api/v1", "/api/public", "/api/internal", "/api/webhooks", "/api/desktop", "/share", "/terms"];
|
|
|
|
|
|
|
|
export async function proxy(request: NextRequest) {
|
|
export async function proxy(request: NextRequest) {
|
|
|
const { pathname } = request.nextUrl;
|
|
const { pathname } = request.nextUrl;
|