Skip to content

Commit

Permalink
Merge pull request #29 from solun-pm/Jannik-Schroeder-patch-2
Browse files Browse the repository at this point in the history
Update server.ts
  • Loading branch information
Jannik-Schroeder authored Mar 7, 2024
2 parents 3208c50 + eb5d268 commit b5c9229
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 b5c9229

Please sign in to comment.