aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-05-16 00:35:00 -0400
committerThedro Neely <thedroneely@gmail.com>2019-05-16 00:35:00 -0400
commitd1005d13cb7b303ebaccaa262c101463ce7b4f92 (patch)
tree205ecf303311790d6285bb311093f58115d1e733 /app/controllers
parentbda06efb4488f76e3e5b87c8f36d08f338b35551 (diff)
downloadthedroneely.com-d1005d13cb7b303ebaccaa262c101463ce7b4f92.tar.gz
thedroneely.com-d1005d13cb7b303ebaccaa262c101463ce7b4f92.tar.bz2
thedroneely.com-d1005d13cb7b303ebaccaa262c101463ce7b4f92.zip
app/controllers/api: Add simple api route to update thumbnails
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/thumbnails.controller.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/api/thumbnails.controller.php b/app/controllers/api/thumbnails.controller.php
new file mode 100644
index 0000000..5741a47
--- /dev/null
+++ b/app/controllers/api/thumbnails.controller.php
@@ -0,0 +1,8 @@
+<?php
+/**
+ * Update Thumbnails
+ */
+if ($_SERVER['REQUEST_METHOD'] === 'POST') {
+ $updateTumbnails = shell_exec('../bootstrap/helpers/update-thumbnails');
+ echo '<pre>' . $updateTumbnails . '</pre>';
+}