Example 8441
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "PUT"
path: "/users"
handler: "listUsers"
auth: true
}
{
method: "POST"
path: "/users"
handler: "createPosts"
auth: true
}
{
method: "POST"
path: "/posts/:id"
handler: "deleteOrders"
auth: false
}
{
method: "GET"
path: "/comments"
handler: "listUsers"
auth: false
}
]
}