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: -
Name - name of the route.
Path – endpoint URL of the route.
Active – Check / Uncheck if ready / not ready to be used.
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.
Method: - POST – to post some data. GET – to get some data.
Script – Code goes here.
Click on ‘create’ button. That’s it, you have created a Route.
Last updated