Example 9545
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "GET"
path: "/posts"
handler: "updateOrders"
auth: true
}
{
method: "DELETE"
path: "/users/:id"
handler: "updatePosts"
auth: true
}
{
method: "GET"
path: "/users/:id"
handler: "getOrders"
auth: true
}
{
method: "GET"
path: "/comments/:id"
handler: "listUsers"
auth: true
}
{
method: "GET"
path: "/posts/:id"
handler: "deletePosts"
auth: true
}
]
}