interface trigger actions
This commit is contained in:
parent
c43f3b6651
commit
e02a7a7d3e
1 changed files with 4 additions and 2 deletions
|
@ -170,8 +170,9 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
|||
try{
|
||||
Websockets::triggerUpdate('game');
|
||||
}catch(\Throwable $e) {
|
||||
// nothing
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
// /interface/images
|
||||
$controllers->get('/trigger/images', function (Application $app) {
|
||||
|
@ -179,8 +180,9 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
|||
try{
|
||||
Websockets::triggerUpdate('images');
|
||||
}catch(\Throwable $e) {
|
||||
// nothing
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
return $controllers;
|
||||
|
|
Loading…
Reference in a new issue