Routes

How to create a Route

A Route is basically a backend REST API, where you write code for some DB Operation or anything else. You make request to this route to get some data or execute any other logic on the server.

In order to create a route, follow these steps: -

  1. Name - name of the route.

  2. Path – endpoint URL of the route.

  3. Active – Check / Uncheck if ready / not ready to be used.

  4. Route Type: - MS – route type is microservice. SITE – for serving static content. API – for serving data from database. CORE – core route is for system specific operations.

  5. Method: - POST – to post some data. GET – to get some data.

  6. Script – Code goes here.

  7. Click on ‘create’ button. That’s it, you have created a Route.

Last updated