Example 12248
API Routes
REST API route definitions.
{
base_url: "/api/v2"
routes: [
{
method: "POST"
path: "/orders/:id"
handler: "getProducts"
auth: true
}
{
method: "PATCH"
path: "/orders"
handler: "createProducts"
auth: true
}
{
method: "GET"
path: "/orders"
handler: "getOrders"
auth: true
}
]
}