[NGINX] Make API docs accessible using /api/

This commit is contained in:
ntimo committed 2019-10-02 22:13:47 +02:00
1 parent 73772275c9
commit 5cf74f6b85
1 file changed
+4
+4
View File
@@ -76,6 +76,10 @@ server {
rewrite ^(.*)$ $1.php last;
}
location /api/ {
try_files /_apidocs.html;
}
location ~ ^/api/v1/(.*)$ {
try_files $uri $uri/ /json_api.php?query=$1;
}