Example 13158
API Routes
REST API route definitions.
{
base_url: "/api/v2"
routes: [
{
method: "PATCH"
path: "/products"
handler: "listUsers"
auth: false
}
{
method: "POST"
path: "/comments"
handler: "deletePosts"
auth: true
}
{
method: "PUT"
path: "/comments/:id"
handler: "listUsers"
auth: false
}
]
}