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{
|
try{
|
||||||
Websockets::triggerUpdate('game');
|
Websockets::triggerUpdate('game');
|
||||||
}catch(\Throwable $e) {
|
}catch(\Throwable $e) {
|
||||||
// nothing
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
});
|
});
|
||||||
// /interface/images
|
// /interface/images
|
||||||
$controllers->get('/trigger/images', function (Application $app) {
|
$controllers->get('/trigger/images', function (Application $app) {
|
||||||
|
@ -179,8 +180,9 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
||||||
try{
|
try{
|
||||||
Websockets::triggerUpdate('images');
|
Websockets::triggerUpdate('images');
|
||||||
}catch(\Throwable $e) {
|
}catch(\Throwable $e) {
|
||||||
// nothing
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
return $controllers;
|
return $controllers;
|
||||||
|
|
Loading…
Reference in a new issue