Example 14356

API Routes

REST API route definitions.

{
base_url: "/api/v3"
routes: [
{
method: "GET"
path: "/products"
handler: "createOrders"
auth: true
}

{
method: "PATCH"
path: "/posts"
handler: "updatePosts"
auth: false
}

{
method: "GET"
path: "/orders"
handler: "listOrders"
auth: false
}

{
method: "POST"
path: "/products"
handler: "updateUsers"
auth: false
}
]
}

See also