Example 9249
API Routes
REST API route definitions.
{
base_url: "/api/v2"
routes: [
{
method: "PATCH"
path: "/users/:id"
handler: "getPosts"
auth: false
}
{
method: "PATCH"
path: "/products"
handler: "getUsers"
auth: true
}
{
method: "POST"
path: "/posts"
handler: "createOrders"
auth: false
}
{
method: "PATCH"
path: "/orders"
handler: "getPosts"
auth: true
}
{
method: "DELETE"
path: "/users/:id"
handler: "updateOrders"
auth: false
}
]
}