routing fixes
This commit is contained in:
parent
0ee9686fb1
commit
44a690f4d2
20 changed files with 769 additions and 962 deletions
7
app/api/user/me/route.ts
Normal file
7
app/api/user/me/route.ts
Normal 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" } });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue