Example 15643
API Routes
REST API route definitions.
{
base_url: "/api/v1"
routes: [
{
method: "PATCH"
path: "/orders/:id"
handler: "deleteProducts"
auth: false
}
{
method: "GET"
path: "/products"
handler: "listPosts"
auth: false
}
{
method: "DELETE"
path: "/comments"
handler: "updateOrders"
auth: false
}
{
method: "DELETE"
path: "/products"
handler: "getPosts"
auth: true
}
{
method: "POST"
path: "/orders"
handler: "listProducts"
auth: false
}
{
method: "PATCH"
path: "/users/:id"
handler: "createPosts"
auth: true
}
{
method: "DELETE"
path: "/posts/:id"
handler: "deleteUsers"
auth: false
}
]
}