Basic Framework

This commit is contained in:
2024-07-13 17:22:53 +02:00
parent c1fffec124
commit 4d25387a47
22 changed files with 250 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
Order deny,allow
Deny From All
<FilesMatch "^$">
Allow From All
</FilesMatch>
+2
View File
@@ -0,0 +1,2 @@
Order deny,allow
Allow from All
+1
View File
@@ -0,0 +1 @@
DOCUMENTATION
+4
View File
@@ -0,0 +1,4 @@
<?php
foreach (glob(__DIR__ . '/*/index.php') as $filename) {
require_once($filename);
}
+15
View File
@@ -0,0 +1,15 @@
<?php
$method = $_SERVER['REQUEST_METHOD'];
switch ($method) {
case "GET":
return get();
default:
return Response::api("$method not supported", 500);
}
function get()
{
Response::api("GET USERS");
}