Example 6352

API Routes

REST API route definitions.

{
base_url: "/api/v2"
routes: [
{
method: "PATCH"
path: "/users"
handler: "deletePosts"
auth: true
}

{
method: "PATCH"
path: "/comments/:id"
handler: "deletePosts"
auth: false
}

{
method: "DELETE"
path: "/comments/:id"
handler: "updatePosts"
auth: false
}
]
}

See also