This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = {
1212 COMMUNITY_APP : "https://community-app.topcoder-dev.com" ,
1313 } ,
1414 // the server api base path
15- API_BASE_PATH : process . env . API_BASE_PATH || "/api" ,
15+ API_BASE_PATH : process . env . API_BASE_PATH || "/earn-app/ api/my-gigs " ,
1616 // the log level, default is 'debug'
1717 LOG_LEVEL : process . env . LOG_LEVEL || "debug" ,
1818 // The authorization secret used during token verification.
Original file line number Diff line number Diff line change 11/* global process */
2-
2+ require ( "./src/api/bootstrap" ) ;
33const express = require ( "express" ) ;
44
55const app = express ( ) ;
66
7- app . use ( "/earn-app/api" , function ( req , res ) {
8- res . send ( "hello earn-app API" ) ;
9- } ) ;
10-
11- app . use ( "/earn/api" , function ( req , res ) {
12- res . send ( "hello earn API" ) ;
13- } ) ;
7+ // Register routes
8+ require ( "./src/api/app-routes" ) ( app ) ;
149
1510app . use (
1611 "/earn-app" ,
@@ -25,9 +20,6 @@ app.use(
2520 } ,
2621 } )
2722) ;
28- require ( "./src/api/bootstrap" ) ;
29- // Register routes
30- require ( "./src/api/app-routes" ) ( app ) ;
3123app . get ( "/" , function ( req , res ) {
3224 res . send ( "alive" ) ;
3325} ) ;
You can’t perform that action at this time.
0 commit comments