Example 17559
API Routes
REST API route definitions.
{
base_url: "/api/v2"
routes: [
{
method: "GET"
path: "/orders/:id"
handler: "getProducts"
auth: false
}
{
method: "PATCH"
path: "/users/:id"
handler: "createProducts"
auth: true
}
{
method: "DELETE"
path: "/comments/:id"
handler: "getOrders"
auth: true
}
]
}