Update user routing, added user authorization with JWT cookie management
This commit is contained in:
parent
662b26ad47
commit
f055e77eea
7 changed files with 97 additions and 10 deletions
|
|
@ -15,7 +15,12 @@ export async function GET() {
|
|||
}
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const response = await fetch(`${BACKEND_URL}/users`, request);
|
||||
const response = await fetch(`${BACKEND_URL}/users`, {
|
||||
method: "POST",
|
||||
headers: request.headers,
|
||||
body: request.body,
|
||||
duplex: "half",
|
||||
});
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue