feature-request: Use storyblok functions from this package directly on API routes #440
Open
1 task done
Labels
dx
[Issue] Improvement or fix with impact on the developer experience.
enhancement
[Issue][PR] New feature
improvement
[Issue][PR] Refactor or code improvement
Description
Can we import storyblok/nuxt directly on a nuxt API route instead of using the client? The setup is already done in the nuxt.config. Since the functions are only in the composable context, it would be nice to use them now on the API routes to get data and combine them with some logic.
Suggested solution or improvement
Additional context
I want to get data from storyblok, cache them with Nitro, and use the CMS data for our own (independent) endpoint to have consistent data and a clean setup.
Validations
The text was updated successfully, but these errors were encountered: