Added multiple routes for /api/stash
This commit is contained in:
parent
122f722ff6
commit
353743a67a
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ app.use(bearerToken());
|
||||||
app.use(bodyParser.json({ limit: Server.BodyLimit })); // parse application/json
|
app.use(bodyParser.json({ limit: Server.BodyLimit })); // parse application/json
|
||||||
app.use(bodyParser.urlencoded({ limit: Server.BodyLimit, extended: false })); // parse application/x-www-form-urlencoded
|
app.use(bodyParser.urlencoded({ limit: Server.BodyLimit, extended: false })); // parse application/x-www-form-urlencoded
|
||||||
//Test if there is a
|
//Test if there is a
|
||||||
app.use("/api/stash", stashRouter);
|
app.use(["/api/nubian/stash", "/api/stash", "/stash"], stashRouter);
|
||||||
const startServer = () => {
|
const startServer = () => {
|
||||||
server = app.listen(port, () => {
|
server = app.listen(port, () => {
|
||||||
console.log("Node version:" + process.versions.node);
|
console.log("Node version:" + process.versions.node);
|
||||||
|
|
Reference in a new issue