Example 10755

API Routes

REST API route definitions.

{
base_url: "/api/v1"
routes: [
{
method: "POST"
path: "/posts"
handler: "deleteOrders"
auth: false
}

{
method: "PUT"
path: "/posts"
handler: "updateProducts"
auth: false
}

{
method: "PUT"
path: "/comments/:id"
handler: "deleteOrders"
auth: false
}

{
method: "POST"
path: "/posts/:id"
handler: "getPosts"
auth: false
}

{
method: "POST"
path: "/posts"
handler: "listProducts"
auth: false
}
]
}

See also