Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbataire committed Feb 20, 2025
1 parent 03a913e commit cdfa31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const build = (opts: FastifyServerOptions): FastifyInstance => {

if (authHeader && authHeader.startsWith('Basic ')) {
if (!req.routeOptions.url?.startsWith('/api')) {
reply.send({error: 'not found'}).status(404);
reply.status(404).send({error: 'not found'});
return;
}

Expand Down

0 comments on commit cdfa31a

Please sign in to comment.