routing fixes

This commit is contained in:
makearmy 2025-09-28 14:54:52 -04:00
parent 0ee9686fb1
commit 44a690f4d2
20 changed files with 769 additions and 962 deletions

7
app/api/user/me/route.ts Normal file
View file

@ -0,0 +1,7 @@
import { NextRequest, NextResponse } from "next/server";
import { dFetchJSON } from "../../options/_lib";
export async function GET(req: NextRequest) {
const body = await dFetchJSON(req, "/users/me?fields=id,username,display_name,first_name,last_name,email");
return NextResponse.json(body, { headers: { "cache-control": "no-store" } });
}