diff --git a/app/Routes.php b/app/Routes.php index 9a68dbc..6d5509b 100644 --- a/app/Routes.php +++ b/app/Routes.php @@ -26,6 +26,8 @@ $router->post('/api/widgets/{widgetId}/run', 'WidgetApi@run'); $router->post('/api/widgets/{widgetId}/check', 'WidgetApi@check'); $router->post('/api/widgets/{widgetId}/detail', 'WidgetApi@detail'); +//cron +$router->post('/cron/clean', 'CronApi@clean'); //Google Home - API $router->any('/api/HA/auth', 'Oauth'); diff --git a/app/api/CronApi.php b/app/api/CronApi.php new file mode 100644 index 0000000..486d5a9 --- /dev/null +++ b/app/api/CronApi.php @@ -0,0 +1,7 @@ +purge(LOGTIMOUT); + } +} \ No newline at end of file