API format changes
parent
297674d256
commit
8b7e3c718d
|
@ -18,6 +18,11 @@ server {
|
|||
access_log /var/log/nginx/access.log;
|
||||
root /web;
|
||||
|
||||
location /api/v1/ {
|
||||
try_files $uri $uri/ /json_api.php?$args;
|
||||
}
|
||||
rewrite ^/api/v1/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&object=$2? last;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
default_type "text/plain";
|
||||
|
@ -166,6 +171,11 @@ server {
|
|||
access_log /var/log/nginx/access.log;
|
||||
root /web;
|
||||
|
||||
location /api/v1/ {
|
||||
try_files $uri $uri/ /json_api.php?$args;
|
||||
}
|
||||
rewrite ^/api/v1/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&object=$2? last;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
default_type "text/plain";
|
||||
|
|
Loading…
Reference in New Issue