Skip to content

Commit

Permalink
Check handler class
Browse files Browse the repository at this point in the history
PR-URL: #445
  • Loading branch information
tshemsedinov committed Aug 25, 2023
1 parent f885ffe commit 8b4b206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class Server {

this.httpServer.on('request', async (req, res) => {
const transport = new HttpTransport(this, req, res);
if (application.static.constructor.name !== 'Static') return;
if (!req.url.startsWith('/api')) {
return void application.static.serve(req.url, transport);
}
Expand Down

0 comments on commit 8b4b206

Please sign in to comment.