Add new user paths, update user routing to new (WORKING!) user auth version of BE

This commit is contained in:
Hannah dagemark 2026-09-10 10:59:58 +02:00
commit d3064fd764
5 changed files with 54 additions and 1 deletions

View file

@ -1,7 +1,7 @@
const BACKEND_URL = process.env.BACKEND_URL;
export async function POST(request: Request) {
const response = await fetch(`${BACKEND_URL}/users/token`, request);
const response = await fetch(`${BACKEND_URL}/users/auth`, request);
const data = await response.json();