diff --git a/lib/server.js b/lib/server.js index edcf702f..6d407473 100644 --- a/lib/server.js +++ b/lib/server.js @@ -184,8 +184,8 @@ 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')) { + if (application.static.constructor.name !== 'Static') return; return void application.static.serve(req.url, transport); } if (balancer) this.balancing(transport);