-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.go
More file actions
21 lines (21 loc) · 721 Bytes
/
doc.go
File metadata and controls
21 lines (21 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// URLs are stored in the form of: /api/foo/{resource}/{id}
// where „resource” and „id” are the two path params
// of the request.
//
// Examples of matching urls for the scheme above:
//
// /api/foo/products/1 -> resource="products" id="1"
// /api/foo/categories/example-category -> resource="categories" id="example-category"
//
// Due to the way we store these routes, there is a chance of trying to store
// ambigoues routes aswell. That obviously would cause a bad behaviour.
// Example for these routes:
//
// /api/{resource}/get
// /api/products/get
//
// The two above would cause an error, however the two 2 below would not:
//
// /api/{resource}/get
// /api/products/get-all
package rtree