Currently, we use a middleware to handle the API endpoints.
This comes with many challenges, eg. we need to create our own TSFE...
We do that because we want to be able to run the API Endpoints in CI, without the user needing to Seed the DB with dummy data.
If we used Typoscript + page type to render the endpoints, then we need at least the sites root page in the DB.
To still make it possible to use storybook in the CI, we could create a command that creates all necessary DB rows automatically.
It should not be that many.
Than we could change out the Middleware to Typoscript + page Type.
Currently, we use a middleware to handle the API endpoints.
This comes with many challenges, eg. we need to create our own TSFE...
We do that because we want to be able to run the API Endpoints in CI, without the user needing to Seed the DB with dummy data.
If we used Typoscript + page type to render the endpoints, then we need at least the sites root page in the DB.
To still make it possible to use storybook in the CI, we could create a command that creates all necessary DB rows automatically.
It should not be that many.
Than we could change out the Middleware to Typoscript + page Type.