diff --git a/index.php b/index.php index 26d0f93..b9fafa0 100644 --- a/index.php +++ b/index.php @@ -179,7 +179,7 @@ function user_can_do ($action_name, $project_type) { throw new \ErrorException($message, 0, $severity, $file, $line); }); // Define app routes -$app->get('/update-from-github', function ($request, $response, $args) { +$app->post('/update-from-github', function ($request, $response, $args) { $result = []; $output = ''; exec("rm -rf " . __DIR__ . "/src/templates/twig_cache/*");