diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-05-16 00:35:00 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-05-16 00:35:00 -0400 |
commit | d1005d13cb7b303ebaccaa262c101463ce7b4f92 (patch) | |
tree | 205ecf303311790d6285bb311093f58115d1e733 /app/controllers/api | |
parent | bda06efb4488f76e3e5b87c8f36d08f338b35551 (diff) | |
download | thedroneely.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/api')
-rw-r--r-- | app/controllers/api/thumbnails.controller.php | 8 |
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>'; +} |