Browse Source

Merge pull request #2999 from ntimo/task/api-docs

[Nginx] Fix nginx config for API docs
André Peters 6 years ago
parent
commit
a008855991
2 changed files with 4 additions and 0 deletions
  1. 4 0
      data/conf/nginx/site.conf
  2. 0 0
      data/web/_apidocs.html

+ 4 - 0
data/conf/nginx/site.conf

@@ -76,6 +76,10 @@ server {
     rewrite ^(.*)$ $1.php last;
   }
 
+  location /api {
+    try_files /_apidocs.html =404;
+  }
+
   location ~ ^/api/v1/(.*)$ {
     try_files $uri $uri/ /json_api.php?query=$1;
   }

File diff suppressed because it is too large
+ 0 - 0
data/web/_apidocs.html


Some files were not shown because too many files changed in this diff