Phase 2 done

This commit is contained in:
Mosiur Rahman
2026-04-22 16:10:04 +06:00
parent 6888405b59
commit bd2c58f9ef
7 changed files with 199 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import express, {Application, Request, Response} from 'express';
import cors from 'cors';
import {ENV} from './config/env';
import {connectDB, readyState} from './config/db';
import authRoutes from './routes/authRoutes';
const app: Application = express()
@@ -27,6 +28,10 @@ app.get('/health/db', (req: Request, res: Response)=> {
});
//api routes
app.use('/api/auth', authRoutes);
//start Server
const start = async (): Promise<void> => {