From a03b36e0c3146cb0dda0bb37c3627f3aae6135b0 Mon Sep 17 00:00:00 2001
From: andryyy <andre.peters@debinux.de>
Date: Wed, 26 Apr 2017 23:37:55 +0200
Subject: [PATCH] Add object to Nginx api configuration

---
 data/conf/nginx/site.conf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf
index 83993d62..181a802b 100644
--- a/data/conf/nginx/site.conf
+++ b/data/conf/nginx/site.conf
@@ -21,7 +21,7 @@ server {
   location /api/v1/ {
     try_files $uri $uri/ /json_api.php?$args;
   }
-  rewrite ^/api/v1/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&object=$2? last;
+  rewrite ^/api/v1/([^/]+)/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&cat=$2&object=$3? last;
 
   location ^~ /.well-known/acme-challenge/ {
 	  allow all;
@@ -170,7 +170,7 @@ server {
   location /api/v1/ {
     try_files $uri $uri/ /json_api.php?$args;
   }
-  rewrite ^/api/v1/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&object=$2? last;
+  rewrite ^/api/v1/([^/]+)/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&cat=$2&object=$3? last;
 
   location ^~ /.well-known/acme-challenge/ {
 	  allow all;
@@ -309,4 +309,4 @@ server {
     #alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
   }
 
-}
\ No newline at end of file
+}