Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 6f90f67

Browse files
author
dengjun
committed
ci:deploying agg API
1 parent f00941c commit 6f90f67

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

server.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
/* global process */
2-
2+
require("./src/api/bootstrap");
33
const express = require("express");
44

55
const 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

1510
app.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);
3123
app.get("/", function (req, res) {
3224
res.send("alive");
3325
});

0 commit comments

Comments
 (0)