Example 16041
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "DELETE"
path: "/posts/:id"
handler: "listProducts"
auth: false
}
{
method: "GET"
path: "/comments/:id"
handler: "createPosts"
auth: false
}
{
method: "DELETE"
path: "/users/:id"
handler: "getProducts"
auth: true
}
{
method: "DELETE"
path: "/posts/:id"
handler: "deleteProducts"
auth: false
}
{
method: "GET"
path: "/orders/:id"
handler: "updateUsers"
auth: true
}
{
method: "GET"
path: "/comments"
handler: "updateUsers"
auth: false
}
{
method: "PUT"
path: "/users/:id"
handler: "updateProducts"
auth: true
}
]
}