mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2025-12-06 06:44:07 +00:00
- moved to typescript - axios rate limitmodule is busted, removed for now, do something else for that - sequelize-typescript - dotenv, not dotenv-flow - removed playlist details route types for API ton of minor fixes and improvements
17 lines
453 B
TypeScript
17 lines
453 B
TypeScript
import { Router } from "express";
|
|
const authRouter: Router = Router();
|
|
|
|
import { login, callback, refresh, logout } from "../controllers/auth.ts";
|
|
import { isAuthenticated } from "../middleware/authCheck.ts";
|
|
import { validate } from "../validators/index.ts";
|
|
|
|
authRouter.get("/login", login);
|
|
|
|
authRouter.get("/callback", callback);
|
|
|
|
authRouter.get("/refresh", isAuthenticated, refresh);
|
|
|
|
authRouter.get("/logout", logout);
|
|
|
|
export default authRouter;
|