Add acl/menu/routes for battery entity
This commit is contained in:
parent
cf1b48a0df
commit
d8e8b94119
3 changed files with 53 additions and 0 deletions
|
|
@ -37,6 +37,19 @@ access_keys:
|
|||
acls:
|
||||
- id: database.menu
|
||||
label: Menu
|
||||
- id: battery
|
||||
label: Battery Access
|
||||
acls:
|
||||
- id: battery.menu
|
||||
label: Menu
|
||||
- id: battery.list
|
||||
label: List
|
||||
- id: battery.add
|
||||
label: Add
|
||||
- id: battery.update
|
||||
label: Update
|
||||
- id: battery.delete
|
||||
label: Delete
|
||||
- id: bmfg
|
||||
label: Battery Manufacturer Access
|
||||
acls:
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ main_menu:
|
|||
acl: database.menu
|
||||
label: Database
|
||||
icon: flaticon-tabs
|
||||
- id: battery_list
|
||||
acl: battery.list
|
||||
label: Batteries
|
||||
parent: database
|
||||
- id: bmfg_list
|
||||
acl: bmfg.list
|
||||
label: Battery Manufacturers
|
||||
|
|
|
|||
|
|
@ -88,6 +88,42 @@ role_delete:
|
|||
controller: App\Controller\RoleController::destroy
|
||||
methods: [DELETE]
|
||||
|
||||
# batteries
|
||||
|
||||
battery_list:
|
||||
path: /batteries
|
||||
controller: App\Controller\BatteryController::index
|
||||
|
||||
battery_rows:
|
||||
path: /batteries/rows
|
||||
controller: App\Controller\BatteryController::rows
|
||||
methods: [POST]
|
||||
|
||||
battery_create:
|
||||
path: /batteries/create
|
||||
controller: App\Controller\BatteryController::create
|
||||
methods: [GET]
|
||||
|
||||
battery_create_submit:
|
||||
path: /batteries/create
|
||||
controller: App\Controller\BatteryController::createSubmit
|
||||
methods: [POST]
|
||||
|
||||
battery_update:
|
||||
path: /batteries/{id}
|
||||
controller: App\Controller\BatteryController::update
|
||||
methods: [GET]
|
||||
|
||||
battery_update_submit:
|
||||
path: /batteries/{id}
|
||||
controller: App\Controller\BatteryController::updateSubmit
|
||||
methods: [POST]
|
||||
|
||||
battery_delete:
|
||||
path: /batteries/{id}
|
||||
controller: App\Controller\BatteryController::destroy
|
||||
methods: [DELETE]
|
||||
|
||||
# battery manufacturers
|
||||
|
||||
bmfg_list:
|
||||
|
|
|
|||
Loading…
Reference in a new issue