Example 16653

API Routes

REST API route definitions.

{
base_url: "/api/v2"
routes: [
{
method: "GET"
path: "/products"
handler: "deleteOrders"
auth: true
}

{
method: "PATCH"
path: "/users/:id"
handler: "deleteOrders"
auth: true
}

{
method: "PATCH"
path: "/posts/:id"
handler: "listOrders"
auth: false
}
]
}

See also