Example 17159
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "DELETE"
path: "/products/:id"
handler: "deleteProducts"
auth: false
}
{
method: "PUT"
path: "/posts"
handler: "deletePosts"
auth: true
}
{
method: "DELETE"
path: "/posts"
handler: "createUsers"
auth: false
}
{
method: "PATCH"
path: "/comments/:id"
handler: "updateProducts"
auth: false
}
]
}