diff options
Diffstat (limited to 'controllers/meta.php')
| -rw-r--r-- | controllers/meta.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/controllers/meta.php b/controllers/meta.php new file mode 100644 index 0000000..ea26c30 --- /dev/null +++ b/controllers/meta.php @@ -0,0 +1,12 @@ +<?php + +foreach (glob("../models/*.php") as $filename) { + include $filename; +} + +match ($_SERVER['REQUEST_METHOD']) { + 'POST' => on_post(), + 'GET' => on_get(), + 'PUT' => on_put(), + 'DELETE' => on_delete(), +}; |
