api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.htaccess 727B

12345678910111213141516171819202122
  1. RewriteEngine On
  2. #RewriteBase /api/
  3. RewriteCond %{REQUEST_METHOD} GET
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteRule ^(.*)/(.*)$ index.php?action=read&table=$1&key=$2 [L,QSA]
  6. RewriteCond %{REQUEST_METHOD} GET
  7. RewriteCond %{REQUEST_FILENAME} !-f
  8. RewriteRule ^(.*)$ index.php?action=list&table=$1 [L,QSA]
  9. RewriteCond %{REQUEST_METHOD} POST
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteRule ^(.*)$ index.php?action=create&table=$1 [L,QSA]
  12. RewriteCond %{REQUEST_METHOD} PUT
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteRule ^(.*)/(.*)$ index.php?action=update&table=$1&key=$2 [L,QSA]
  15. RewriteCond %{REQUEST_METHOD} DELETE
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteRule ^(.*)/(.*)$ index.php?action=delete&table=$1&key=$2 [L,QSA]