Skip to main content

7 docs tagged with "ctx"

View all tags

Controllers

Controllers bundle actions that handle business logic for each route within Strapi’s MVC pattern. This documentation demonstrates generating controllers, extending core ones with createCoreController, and delegating heavy logic to services.

Error handling

With Strapi's error handling feature it's easy to send and receive errors in your application.

Middlewares

Middlewares alter the request or response flow at application or API levels. This documentation distinguishes global versus route middlewares and illustrates custom implementations with generation patterns.

Routes

Strapi routes handle requests to your content and are auto-generated for your content-types. Routes can be customized according to your needs.