implement backend skeleton with MongoDB and Claude AI integration
- Add controllers (Auth, Chat, Event) with placeholder implementations - Add services (Auth, Chat, Event) with business logic interfaces - Add repositories with MongoDB/Mongoose models (User, Event, Chat) - Add middleware for JWT authentication - Add Claude AI adapter implementing AIProvider interface - Add utility modules for JWT and password handling - Add shared types and DTOs for User, CalendarEvent, ChatMessage - Configure routes with proper endpoint structure - Update app.ts with dependency injection setup - Add required dependencies: mongoose, bcrypt, jsonwebtoken, @anthropic-ai/sdk
This commit is contained in:
13
apps/server/src/routes/auth.routes.ts
Normal file
13
apps/server/src/routes/auth.routes.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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));
|
||||
router.post('/refresh', (req, res) => authController.refresh(req, res));
|
||||
router.post('/logout', (req, res) => authController.logout(req, res));
|
||||
|
||||
return router;
|
||||
}
|
||||
Reference in New Issue
Block a user