Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
Changed / get functrion to 200 fpr helath check
  • Loading branch information
Jannik-Schroeder authored Mar 7, 2024
1 parent 3208c50 commit eb5d268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const timeout = (req: any, res: any, next: any) => {


app.get('/', (req, res) => {
res.status(404).json({ message: "This is the Solun API server, please refer to the documentation for more information." });
res.status(200).json({ message: "This is the Solun API server, please refer to the documentation for more information." });
});

app.post('/message/create', limiter, jsonParser, handleCreateMessageRequest);
Expand Down Expand Up @@ -262,4 +262,4 @@ const server = app.listen(3000, () => {
console.log('Solun-API server started at port 3000');
});

server.setTimeout(24 * 60 * 60 * 1000); // 24 hours
server.setTimeout(24 * 60 * 60 * 1000); // 24 hours

0 comments on commit eb5d268

Please sign in to comment.