garrettmills
bd69be7137
All checks were successful
continuous-integration/drone/push Build is passing
49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
const saml_routes = {
|
|
prefix: '/api/v1/radius',
|
|
|
|
middleware: [],
|
|
|
|
get: {
|
|
'/clients': [
|
|
['middleware::auth:APIRoute'],
|
|
['middleware::api:Permission', { check: 'v1:radius:clients:list' }],
|
|
'controller::api:v1:Radius.get_clients',
|
|
],
|
|
'/clients/:id': [
|
|
['middleware::auth:APIRoute'],
|
|
['middleware::api:Permission', { check: 'v1:radius:clients:get' }],
|
|
'controller::api:v1:Radius.get_client',
|
|
],
|
|
},
|
|
|
|
post: {
|
|
'/attempt': [
|
|
['middleware::auth:GuestOnly'],
|
|
'controller::api:v1:Radius.attempt',
|
|
],
|
|
'/clients': [
|
|
['middleware::auth:APIRoute'],
|
|
['middleware::api:Permission', { check: 'v1:radius:clients:create' }],
|
|
'controller::api:v1:Radius.create_client',
|
|
],
|
|
},
|
|
|
|
patch: {
|
|
'/clients/:id': [
|
|
['middleware::auth:APIRoute'],
|
|
['middleware::api:Permission', { check: 'v1:radius:clients:update' }],
|
|
'controller::api:v1:Radius.update_client',
|
|
],
|
|
},
|
|
|
|
delete: {
|
|
'/clients/:id': [
|
|
['middleware::auth:APIRoute'],
|
|
['middleware::api:Permission', { check: 'v1:radius:clients:delete' }],
|
|
'controller::api:v1:Radius.delete_client',
|
|
],
|
|
},
|
|
}
|
|
|
|
module.exports = exports = saml_routes
|