Skip to content

Commit

Permalink
Merge pull request #5 from WeatherFX/route_middleware
Browse files Browse the repository at this point in the history
Added serving static files
  • Loading branch information
klexysmile authored Aug 30, 2023
2 parents 784c60b + 294524d commit 8f7464b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export class ODataServerBase extends Transform{
app.use(m);
})
}
app.use(express.static('public'));
app.use((<any>path) || "/", router);
return app.listen(port, <any>hostname);
}
Expand Down

0 comments on commit 8f7464b

Please sign in to comment.