Skip to content

Commit

Permalink
fix: add server prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed May 15, 2022
1 parent 704493d commit e06b17b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ function serve() {
res.redirect("/search");
}
});
app.get("/uploads*", RequireAuthentication, upload);

app.use("/upload", upload);
app.use("/users", users);
app.use("/notion", notion);
app.use("/rules", rules);
app.use("/settings", _settings);
app.use("/download", download);
app.use("/favorite", favorite);
app.get("/api/uploads*", RequireAuthentication, upload);

app.use("/api/upload", upload);
app.use("/api/users", users);
app.use("/api/notion", notion);
app.use("/api/rules", rules);
app.use("/api/settings", _settings);
app.use("/api/download", download);
app.use("/api/favorite", favorite);

// Note: this has to be the last handler
app.get("*", (_req, res) => {
Expand Down

0 comments on commit e06b17b

Please sign in to comment.