[
    {
        "from": "/",
        "to": "/_list/collections/collections",
        "method": "GET"
    },
    {
        "from": "/",
        "to": "/_update/collection",
        "method": "POST"
    },
    {
        "from": "/:item",
        "to": "/_list/items/items",
        "method": "GET",
        "query": {
            "reduce": false,
            "startkey": [":item", 0],
            "endkey": [":item", 1]
        }
    },
    {
        "from": "/:item",
        "to": "/_update/collection/:item",
        "method": "PUT"
    },
    {
        "from": "/:item",
        "to": "/_update/collection/:item",
        "method": "DELETE"
    },
    {
        "from": "/:item",
        "to": "/_update/item",
        "method": "POST",
        "query": {
            "collection": ":item"
        }
    },
    {
        "from": "/:item/edit",
        "to": "/_show/item/:item",
        "method": "GET"
    },
    {
        "from": "/:item/edit",
        "to": "/_update/item/:item",
        "method": "PUT"
    },
    {
        "from": "/:item/edit",
        "to": "/_update/item/:item",
        "method": "DELETE"
    }
]

[
    {
        "from": "",
        "to": "_list/collections/collections",
        "method": "GET"
    },
    {
        "from": "",
        "to": "_update/collection",
        "method": "POST"
    },
    {
        "from": ":item",
        "to": "_list/items/items",
        "method": "GET",
        "query": {
            "reduce": false,
            "startkey": [":item", 0],
            "endkey": [":item", 1]
        }
    },
    {
        "from": ":item",
        "to": "_update/collection/:item",
        "method": "PUT"
    },
    {
        "from": ":item",
        "to": "_update/collection/:item",
        "method": "DELETE"
    },
    {
        "from": ":item",
        "to": "_update/item",
        "method": "POST",
        "query": {
            "collection": ":item"
        }
    },
    {
        "from": ":item/edit",
        "to": "_show/item/:item",
        "method": "GET"
    },
    {
        "from": ":item/edit",
        "to": "_update/item/:item",
        "method": "PUT"
    },
    {
        "from": ":item/edit",
        "to": "_update/item/:item",
        "method": "DELETE"
    }
]

Remove preceding trailing slash from rewrite rules.
Remove preceding trailing slash from rewrite rules.
