add athorization to all calls except auth
This commit is contained in:
parent
8fb48f7243
commit
5dd79374c1
5 changed files with 41 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue