Skip to content

Commit b19bcfe

Browse files
committed
backend: updated documentation url path for better NGINX integration
1 parent 2d0e0e5 commit b19bcfe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

backend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "backend",
2+
"name": "Navigator Backend",
33
"module": "server.ts",
44
"type": "module",
55
"scripts": {

backend/server.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ app.use(express.json());
1010
app.use(cors({ origin: "*" }));
1111

1212
app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));
13+
app.get("/api", (req, res) => res.redirect("/api-docs"));
1314

1415
RegisterRoutes(app);
1516

0 commit comments

Comments
 (0)