From 1a27993a940d7e1285577fefc7c6712b7c73f472 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 21 Jul 2020 10:29:26 +0200 Subject: [PATCH] Crone Controlls Commit --- app/Routes.php | 2 ++ app/api/CronApi.php | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 app/api/CronApi.php 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