all repos — litestore @ 83d987fe60eed5d1dfb91a814f0ed8560eb9719c

A minimalist nosql document store.

src/litestorepkg/examples/config.json

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
{
  "settings": {
    "log": "debug",
    "middleware": "litestorepkg/examples/middleware"
  },
  "resources": {
    "/info": {
      "GET": { "auth": ["admin:server"] }
    },
    "/docs/*": {
      "GET": {
        "middleware": ["test"]
      },
      "POST": { "auth": ["admin:server"] },
      "PATCH": { "auth": ["admin:server"] },
      "PUT": { "auth": ["admin:server"] },
      "DELETE": { "auth": ["admin:server"] }
    },
    "/docs/wiki/*": {
      "POST": { "auth": ["admin:wiki"] },
      "PUT": { "auth": ["admin:wiki"] },
      "PATCH": { "auth": ["admin:wiki"] },
      "DELETE": { "auth": ["admin:wiki"] }
    }
  },
  "signature": "\n-----BEGIN CERTIFICATE-----\n<certificate text goes here>\n-----END CERTIFICATE-----\n"
}