Server /api returning 404, but still working
I have a server route in
However, this makes no sense as the route works fine and the code inside the route actually works - just when it finishes (it's non-sync code I believe, tried promisify-ing it to no luck) the
/server/api/download.post.ts. When fetching it, the route seems to return a 404 Cannot find any route matching /api/download.However, this makes no sense as the route works fine and the code inside the route actually works - just when it finishes (it's non-sync code I believe, tried promisify-ing it to no luck) the
event.node.res.end won't work. Any help?