File tree 4 files changed +10
-21
lines changed
4 files changed +10
-21
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,6 @@ app.use(express.json())
34
34
app . use ( express . urlencoded ( { extended : false } ) )
35
35
36
36
// middleware for handling sample api routes
37
- app . use ( '/api/v1' , require ( './routes/api/v1/API' ) )
37
+ app . use ( '/api/v1' , require ( '.. /routes/api/v1/API' ) )
38
38
39
39
module . exports = app
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- const app = require ( '../app' )
3
+ const app = require ( '../api/ app' )
4
4
5
5
// use port from environment variables for production
6
6
const PORT = process . env . PORT || 5000
Original file line number Diff line number Diff line change 2
2
"name" : " coderatingengine" ,
3
3
"version" : " 1.0.0" ,
4
4
"engines" : {
5
- "node" : " 16 .x" ,
5
+ "node" : " 18 .x" ,
6
6
"yarn" : " 1.x"
7
7
},
8
8
"description" : " Engine to handle the rating mechanisms for the clean code" ,
9
- "main" : " bin/www" ,
9
+ "main" : " bin/www.js " ,
10
10
"scripts" : {
11
- "start" : " node ./bin/www" ,
12
- "dev" : " nodemon ./bin/www" ,
13
- "test" : " mocha --exit --timeout 15000"
11
+ "start" : " node ./bin/www.js" ,
12
+ "dev" : " nodemon ./bin/www.js" ,
13
+ "test" : " mocha --exit --timeout 15000" ,
14
+ "build" : " yarn install"
14
15
},
15
16
"author" : " Gaurav Walia" ,
16
17
"license" : " ISC" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : 2 ,
3
2
"github" : {
4
3
"enabled" : false
5
4
},
6
- "builds" :[
7
- {
8
- "src" : " ./bin/www" ,
9
- "use" : " @vercel/node" ,
10
- "config" : { "includeFiles" : [" **" ] }
11
- }
12
- ],
13
- "routes" :[
14
- {
15
- "src" : " /(.*)" ,
16
- "dest" : " bin/www"
17
- }
18
- ]
5
+ "rewrites" : [{ "source" : " /api/(.*)" , "destination" : " /api/app.js" }],
6
+ "outputDirectory" : " ./api"
19
7
}
You can’t perform that action at this time.
0 commit comments