interface trigger actions

This commit is contained in:
Ruben 2016-11-03 11:11:41 +01:00
parent c43f3b6651
commit e02a7a7d3e
1 changed files with 4 additions and 2 deletions

View File

@ -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;