Example 5252
API Routes
REST API route definitions.
{
base_url: "/api/v1"
routes: [
{
method: "GET"
path: "/orders/:id"
handler: "updateProducts"
auth: false
}
{
method: "POST"
path: "/products/:id"
handler: "getPosts"
auth: false
}
{
method: "PUT"
path: "/orders/:id"
handler: "listUsers"
auth: false
}
{
method: "PATCH"
path: "/orders/:id"
handler: "updateOrders"
auth: false
}
{
method: "PATCH"
path: "/comments/:id"
handler: "updatePosts"
auth: false
}
]
}