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