File tree Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1+ PORT = 3000
2+ DB_URI = mongodb://localhost:27017/todoapp
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Document</ title >
7+ </ head >
8+ < body >
9+
10+ </ body >
11+ </ html >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import express from 'express' ;
2+ import userRoutes from './routes/users.js' ;
3+ import cartRoutes from './routes/carts.js' ;
4+ import productRoutes from './routes/products.js' ;
5+
6+ const app = express ( ) ;
7+ app . use ( express . json ( ) ) ;
8+
9+ app . use ( '/api/users' , userRoutes ) ;
10+ app . use ( '/api/carts' , cartRoutes ) ;
11+ app . use ( '/api/products' , productRoutes ) ;
12+
13+ app . listen ( 3000 , ( ) => {
14+ console . log ( 'Servidor rodando na porta 3000' ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments