Example 11641
API Routes
REST API route definitions.
{
base_url: "/api/v1"
routes: [
{
method: "GET"
path: "/orders/:id"
handler: "deleteProducts"
auth: false
}
{
method: "POST"
path: "/posts"
handler: "getProducts"
auth: true
}
{
method: "PUT"
path: "/orders"
handler: "listProducts"
auth: false
}
{
method: "POST"
path: "/posts/:id"
handler: "getUsers"
auth: false
}
{
method: "DELETE"
path: "/users/:id"
handler: "createUsers"
auth: false
}
]
}