[NGINX] Make API docs accessible using /api/
parent
73772275c9
commit
5cf74f6b85
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue