add athorization to all calls except auth

This commit is contained in:
Anika Raemer 2025-09-24 21:24:20 +02:00
parent 8fb48f7243
commit 5dd79374c1
5 changed files with 41 additions and 12 deletions

View file

@ -9,8 +9,9 @@ import {
} from "../errors/httpErrors.js";
import { LoginRequestDto } from "../dtos/LoginRequestDto.js";
const router = Router();
export const authBasicRoute = "/auth"
const router = Router();
const userRepository = new UserRepository();
const mapper = new UserDtoEntityMapper();
const authController = new AuthController(userRepository, mapper);