JWT was never used - auth uses X-User-Id header. Removes jwt.ts utility, jsonwebtoken dependency, stubbed refresh/logout endpoints, and updates all docs (PUML diagrams, api-routes, tex, CLAUDE.md) accordingly.
12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import { Router } from "express";
|
|
import { AuthController } from "../controllers";
|
|
|
|
export function createAuthRoutes(authController: AuthController): Router {
|
|
const router = Router();
|
|
|
|
router.post("/login", (req, res) => authController.login(req, res));
|
|
router.post("/register", (req, res) => authController.register(req, res));
|
|
|
|
return router;
|
|
}
|