fix: cannot reach api endpoint
This commit is contained in:
parent
5bc3d5580e
commit
c6f92c0f77
1 changed files with 1 additions and 2 deletions
|
|
@ -27,8 +27,7 @@ RegisterRoutes(router);
|
|||
app.use(swaggerSpecs.basePath, router);
|
||||
app.use(errorHandler);
|
||||
|
||||
app.use(express.static("static"));
|
||||
app.get("*", (_req, res) => {
|
||||
app.use((_req, res, _next) => {
|
||||
res.sendFile(`${process.cwd()}/static/index.html`);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue