@thetutlage are you planning add nested resources?
Route
.resource('r1')
.only('index')
.addResource('r2', (resource) => {
resource.only('create')
resource.addMember('m2', ['GET'])
resource.addResource('r3')
})
// GET r1
// POST r1/:id/r2
// GET r1/:id/r2/:r2_id/m2
// GET r1/:id/r2/:r2_id/r3/:r3_id
// ...
You can simply use dot notation
Route.resource('r1.r2', 'R2Controller')
@thetutlage Great! I didn't know about it (no documentation)
Will add it to the docs
Fixed, will be deployed soon.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Will add it to the docs