File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ const content_route_1 = __importDefault(require("./Routes/content.route"));
1313const brain_route_1 = __importDefault ( require ( "./Routes/brain.route" ) ) ;
1414const PORT = process . env . PORT || 5000 ;
1515
16- app . listen ( PORT , ( ) => {
17- console . log ( `Server running on port ${ PORT } ` ) ;
18- } ) ;
16+
1917
2018
2119
@@ -24,6 +22,9 @@ const app = (0, express_1.default)();
2422app . use ( cors ( ) ) ;
2523mongoose . connect ( process . env . MONGODB_URI ) ;
2624mongoose . then ( ( ) => console . log ( "MongoDB Connected Successfully" ) )
25+ app . listen ( PORT , ( ) => {
26+ console . log ( `Server running on port ${ PORT } ` ) ;
27+ } ) ;
2728mongoose . catch ( err => console . log ( "MongoDB Error:" , err ) ) ;
2829app . use ( express_1 . default . json ( ) ) ;
2930app . use ( "/api/v1/auth" , auth_route_1 . default ) ;
You can’t perform that action at this time.
0 commit comments