Example 6058
API Routes
REST API route definitions.
{
base_url: "/api/v2"
routes: [
{
method: "PUT"
path: "/products"
handler: "deleteProducts"
auth: false
}
{
method: "POST"
path: "/orders"
handler: "listProducts"
auth: true
}
{
method: "PUT"
path: "/comments/:id"
handler: "getProducts"
auth: true
}
{
method: "DELETE"
path: "/comments"
handler: "listUsers"
auth: false
}
]
}