Small Fix

This commit is contained in:
JonatanRek 2020-05-24 19:37:29 +02:00
parent 0543f74977
commit b2474fbdfb
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ $router->get('/api/rooms/:id/update', 'RoomsApi@update');
$router->get('/api/devices', 'DevicesApi@default');
$router->get('/api/widget/:id/run', 'WidgetApi@default');
$router->get('/api/widget/:id/run', 'WidgetApi@run');
$router->any('/api/HA/auth', 'Oauth');
$router->any('/api/HA', 'GoogleHomeApi@response');

View File

@ -1,7 +1,7 @@
<?php
class WidgetApi extends ApiController{
public function default($subDeviceId){
public function run($subDeviceId){
//$this->requireAuth();
$response = null;