Good day to you all!
I have been familiarized with JSON:API (https://jsonapi.org)... In this document I have read this one:
`A server MUST return `404 Not Found` when processing a request to fetch a link URL that does not exist...`
Okay, look... I have a routes.conf that consists of available routes, for example:
GET /api/v1/@token/getDirections=ApiController->getDirections
everything is stable...
If I will try to fetch some data from link that does not exist I will be moved to the URL that have defined already
in this section:
routes.conf
[redirects]
POST|GET /*= /index
So, my question is: How to make APIs `404` response if route does not exist at all? Because as I realize, if route does not
exist, F3 will set `301 Moved permanently` first, and then will redirected to the `/index (200 OK)` route. As you see, there is no
`404` as JSON:API needed...
But I want to mention that this is only for API, simple scheme should work anyway...
Hope, its clear, thx