Example 18358
API Routes
REST API route definitions.
{
base_url: "/api/v2"
routes: [
{
method: "DELETE"
path: "/users"
handler: "updateProducts"
auth: true
}
{
method: "DELETE"
path: "/users/:id"
handler: "getUsers"
auth: true
}
{
method: "DELETE"
path: "/orders"
handler: "listUsers"
auth: false
}
{
method: "GET"
path: "/comments"
handler: "deleteUsers"
auth: false
}
]
}