API format changes

master
andryyy 2017-03-28 11:51:31 +02:00
parent 297674d256
commit 8b7e3c718d
1 changed files with 10 additions and 0 deletions

View File

@ -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";