import express from 'express';

export function createAuthRoutes(container) {
  const router = express.Router();
  const authController = container.resolve('AuthController');

  router.post('/register', (req, res, next) => authController.register(req, res, next));
  router.post('/login', (req, res, next) => authController.login(req, res, next));
  router.post('/logout', (req, res, next) => authController.logout(req, res, next));

  return router;
}
