Example 8652

API Routes

REST API route definitions.

{
base_url: "/api/v3"
routes: [
{
method: "POST"
path: "/posts"
handler: "deleteOrders"
auth: true
}

{
method: "PATCH"
path: "/comments"
handler: "getProducts"
auth: true
}

{
method: "PATCH"
path: "/users"
handler: "listPosts"
auth: false
}
]
}

See also