Example 9946
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "GET"
path: "/products/:id"
handler: "createPosts"
auth: false
}
{
method: "GET"
path: "/users"
handler: "listPosts"
auth: false
}
{
method: "DELETE"
path: "/orders"
handler: "updateOrders"
auth: true
}
{
method: "POST"
path: "/users/:id"
handler: "listOrders"
auth: true
}
{
method: "PUT"
path: "/comments/:id"
handler: "deleteUsers"
auth: false
}
{
method: "POST"
path: "/products/:id"
handler: "deletePosts"
auth: true
}
{
method: "PUT"
path: "/comments"
handler: "getProducts"
auth: false
}
]
}