Implement basic security policy on daemon remote routes
This commit is contained in:
parent
9087feec4f
commit
4b0197f2be
5 changed files with 74 additions and 6 deletions
|
@ -30,7 +30,7 @@ class DaemonRoutes
|
|||
{
|
||||
public function map(Router $router)
|
||||
{
|
||||
$router->group(['prefix' => 'daemon'], function () use ($router) {
|
||||
$router->group(['prefix' => 'daemon', 'middleware' => 'daemon'], function () use ($router) {
|
||||
$router->get('services', [
|
||||
'as' => 'daemon.services',
|
||||
'uses' => 'Daemon\ServiceController@list',
|
||||
|
|
|
@ -42,11 +42,6 @@ class RemoteRoutes
|
|||
'uses' => 'Remote\RemoteController@postInstall',
|
||||
]);
|
||||
|
||||
$router->post('event', [
|
||||
'as' => 'remote.event',
|
||||
'uses' => 'Remote\RemoteController@event',
|
||||
]);
|
||||
|
||||
$router->get('configuration/{token}', [
|
||||
'as' => 'remote.configuration',
|
||||
'uses' => 'Remote\RemoteController@getConfiguration',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue