mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Automation Endpoints Create
This commit is contained in:
1 parent
8b32ecc619
commit
a3eaf16fd6
3 files changed
+23
-1
No files matched your search
+11
-1
@@ -24,24 +24,34 @@ $router->any('/plugins', 'Plugins');
|
||||
$router->any('/ajax', 'Ajax');
|
||||
$router->any('/oauth', 'Oauth');
|
||||
|
||||
//Vue APP
|
||||
//Vue APP - Authentication
|
||||
$router->post('/api/login', 'AuthApi@login');
|
||||
$router->post('/api/logout', 'AuthApi@logout');
|
||||
|
||||
//Vue APP - Rooms
|
||||
$router->get('/api/rooms', 'RoomsApi@default');
|
||||
$router->get('/api/rooms/{roomId}/update', 'RoomsApi@update');
|
||||
|
||||
$router->get('/api/devices', 'DevicesApi@default');
|
||||
|
||||
$router->get('/api/plugins', 'PluginsApi@default');
|
||||
|
||||
$router->get('/api/users', 'UsersApi@default');
|
||||
|
||||
//Vue APP - Server Info
|
||||
$router->get('/api/server', 'ServerApi@default');
|
||||
$router->get('/api/server/log', 'ServerApi@logStatus');
|
||||
|
||||
//Vue APP - Widgets
|
||||
$router->post('/api/widgets/{widgetId}/run', 'WidgetApi@run');
|
||||
$router->get('/api/widgets/{widgetId}/detail', 'WidgetApi@detail');
|
||||
$router->get('/api/widgets/{widgetId}/detail/{period}', 'WidgetApi@detail');
|
||||
|
||||
//Vue APP - Automations Endpoints
|
||||
$router->get('/api/automations', 'AutomationsApi@default');
|
||||
$router->get('/api/automations/{automationId}/detail', 'AutomationsApi@detail');
|
||||
$router->post('/api/automations/create', 'AutomationsApi@create');
|
||||
|
||||
|
||||
|
||||
//cron
|
||||
|
||||
Reference in new issue
Block a user