Skip to main content

7 docs tagged with "ctx"

View All Tags


Controllers are JavaScript files that contain a set of methods, called actions, reached by the client according to the requested route. Whenever a client requests the route, the action performs the business logic code and sends back the response. Controllers represent the C in the model-view-controller (MVC) pattern.

Error handling

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


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