Example 11342
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "POST"
path: "/orders"
handler: "deletePosts"
auth: true
}
{
method: "PATCH"
path: "/posts/:id"
handler: "getOrders"
auth: true
}
{
method: "PUT"
path: "/posts/:id"
handler: "updatePosts"
auth: true
}
{
method: "DELETE"
path: "/users"
handler: "listPosts"
auth: true
}
{
method: "GET"
path: "/orders"
handler: "getPosts"
auth: false
}
{
method: "DELETE"
path: "/users"
handler: "deleteProducts"
auth: true
}
{
method: "POST"
path: "/posts/:id"
handler: "listProducts"
auth: false
}
]
}