Add ability to manage computers and computer groups from web interface
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -22,6 +22,22 @@ const ldap_routes = {
|
||||
['middleware::api:Permission', { check: 'v1:ldap:groups:get' }],
|
||||
'controller::api:v1:LDAP.get_group',
|
||||
],
|
||||
'/machines': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machines:list' }],
|
||||
'controller::api:v1:LDAP.get_machines',
|
||||
],
|
||||
'/machines/:id': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machines:get' }],
|
||||
'controller::api:v1:LDAP.get_machine',
|
||||
],
|
||||
'/machine-groups': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machine_groups:list' }],
|
||||
'controller::api:v1:LDAP.get_machine_groups',
|
||||
],
|
||||
'/machine-groups/:id': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machine_groups:get' }],
|
||||
'controller::api:v1:LDAP.get_machine_group',
|
||||
],
|
||||
'/config': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:config:get' }],
|
||||
'controller::api:v1:LDAP.get_config',
|
||||
@@ -37,6 +53,14 @@ const ldap_routes = {
|
||||
['middleware::api:Permission', { check: 'v1:ldap:groups:create' }],
|
||||
'controller::api:v1:LDAP.create_group',
|
||||
],
|
||||
'/machines': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machines:create' }],
|
||||
'controller::api:v1:LDAP.create_machine',
|
||||
],
|
||||
'/machine-groups': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machine_groups:create' }],
|
||||
'controller::api:v1:LDAP.create_machine_group',
|
||||
],
|
||||
},
|
||||
|
||||
patch: {
|
||||
@@ -48,6 +72,14 @@ const ldap_routes = {
|
||||
['middleware::api:Permission', { check: 'v1:ldap:groups:update' }],
|
||||
'controller::api:v1:LDAP.update_group',
|
||||
],
|
||||
'/machines/:id': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machines:update' }],
|
||||
'controller::api:v1:LDAP.update_machine',
|
||||
],
|
||||
'/machine-groups/:id': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machine_groups:update' }],
|
||||
'controller::api:v1:LDAP.update_machine_group',
|
||||
],
|
||||
},
|
||||
|
||||
delete: {
|
||||
@@ -59,6 +91,14 @@ const ldap_routes = {
|
||||
['middleware::api:Permission', { check: 'v1:ldap:groups:delete' }],
|
||||
'controller::api:v1:LDAP.delete_group',
|
||||
],
|
||||
'/machines/:id': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machines:delete' }],
|
||||
'controller::api:v1:LDAP.delete_machine',
|
||||
],
|
||||
'/machine-groups/:id': [
|
||||
['middleware::api:Permission', { check: 'v1:ldap:machine_groups:delete' }],
|
||||
'controller::api:v1:LDAP.delete_machine_group',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user