Example 8860

API Routes

REST API route definitions.

{
base_url: "/api/v2"
routes: [
{
method: "PUT"
path: "/products"
handler: "deleteUsers"
auth: false
}

{
method: "PUT"
path: "/posts/:id"
handler: "getUsers"
auth: false
}

{
method: "POST"
path: "/users/:id"
handler: "deleteProducts"
auth: false
}
]
}

See also