Example 12260

API Routes

REST API route definitions.

{
base_url: "/api/v3"
routes: [
{
method: "GET"
path: "/orders"
handler: "listProducts"
auth: true
}

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

{
method: "DELETE"
path: "/orders/:id"
handler: "updateUsers"
auth: false
}
]
}

See also