feat: Change slice url
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
ff07f8f4a5
commit
b2b829ec54
@ -16,7 +16,7 @@ add `Authorization: Bearer {token}`
|
|||||||
| /api/v1/users/{userId}/configs | POST | configs.create | yes | yes | Add a new configuration to the user |
|
| /api/v1/users/{userId}/configs | POST | configs.create | yes | yes | Add a new configuration to the user |
|
||||||
| /api/v1/users/{userId}/keys | GET | keys.get | yes | no | get the list of API key for the user |
|
| /api/v1/users/{userId}/keys | GET | keys.get | yes | no | get the list of API key for the user |
|
||||||
| /api/v1/users/{userId}/keys | POST | keys.create | yes | no | create a new API key for the user |
|
| /api/v1/users/{userId}/keys | POST | keys.create | yes | no | create a new API key for the user |
|
||||||
| /api/v1/users/{userId}/process | POST | slicing.slice | yes | yes | run the main website action |
|
| /api/v1/slice/{configId} | POST | slice.slice | yes | yes | run the main website action |
|
||||||
|
|
||||||
endpoints not available through API can still be accessed by admins with the `admin.` prefix to the permission
|
endpoints not available through API can still be accessed by admins with the `admin.` prefix to the permission
|
||||||
|
|
||||||
|
@ -9,6 +9,11 @@ const endpointsPermissions: Record<string, Permission> = {
|
|||||||
api: true,
|
api: true,
|
||||||
cookie: true,
|
cookie: true,
|
||||||
name: 'configs.get'
|
name: 'configs.get'
|
||||||
|
},
|
||||||
|
'/api/v1/slice/[configId]': {
|
||||||
|
api: true,
|
||||||
|
cookie: true,
|
||||||
|
name: 'slice.slice'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user