routes.json 947 Bytes
Newer Older
alain's avatar
alain committed
1
2
3
4
{
  "routes": [
    {
      "method": "GET",
5
6
      "path": "/menu-items",
      "handler": "menu-item.find",
alain's avatar
alain committed
7
8
9
10
11
12
      "config": {
        "policies": []
      }
    },
    {
      "method": "GET",
13
14
      "path": "/menu-items/count",
      "handler": "menu-item.count",
alain's avatar
alain committed
15
16
17
18
19
20
      "config": {
        "policies": []
      }
    },
    {
      "method": "GET",
21
22
      "path": "/menu-items/:id",
      "handler": "menu-item.findOne",
alain's avatar
alain committed
23
24
25
26
27
28
      "config": {
        "policies": []
      }
    },
    {
      "method": "POST",
29
30
      "path": "/menu-items",
      "handler": "menu-item.create",
alain's avatar
alain committed
31
32
33
34
35
36
      "config": {
        "policies": []
      }
    },
    {
      "method": "PUT",
37
38
      "path": "/menu-items/:id",
      "handler": "menu-item.update",
alain's avatar
alain committed
39
40
41
42
43
44
      "config": {
        "policies": []
      }
    },
    {
      "method": "DELETE",
45
46
      "path": "/menu-items/:id",
      "handler": "menu-item.delete",
alain's avatar
alain committed
47
48
49
50
51
52
      "config": {
        "policies": []
      }
    }
  ]
}