Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zal1000 committed Jul 1, 2021
1 parent 53bdbee commit 1d74fc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export function app(): express.Express {
server.set('views', distFolder);

// Example Express Rest API endpoints
// server.get('/api/**', (req, res) => { });
server.get('/api/shares/ShareId', (req, res) => {
res.status(200).send({status: 'OK'});
});
// Serve static files from /browser
server.get('*.*', express.static(distFolder, {
maxAge: '1w'
Expand Down

0 comments on commit 1d74fc6

Please sign in to comment.