-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.json
More file actions
63 lines (63 loc) · 2.21 KB
/
Copy pathroutes.json
File metadata and controls
63 lines (63 loc) · 2.21 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"common": {
"before": [
"\\App\\Middleware\\RequestIdBeforeMiddleware",
"\\App\\Middleware\\CorsBeforeMiddleware"
],
"after": [
"\\App\\Middleware\\RequestIdAfterMiddleware",
"\\App\\Middleware\\ResponseTimeAfterMiddleware",
"\\App\\Middleware\\ResponseLogAfterMiddleware"
]
},
"groups": [
{
"name": "unversioned",
"notes": "",
"prefix": "/blog/api",
"before": [],
"routes": [
{ "methods":[], "path":"/health", "handler":"\\App\\Controllers\\HealthController" },
{ "methods":[], "path":"/status", "handler":"\\App\\Controllers\\StatusController" }
],
"after": []
},
{
"name":"Anonymous",
"notes": "Anonymous endpoints",
"prefix": "/blog/api/v1",
"before": [],
"routes": [
{ "methods":"POST", "path":"/register", "handler":"\\App\\Controllers\\v1\\RegisterController" },
{ "methods":"POST", "path":"/signin", "handler":"\\App\\Controllers\\v1\\SignInController" }
],
"after": []
},
{
"name":"Authenticated",
"notes": "Authenticated endpoints",
"prefix": "/blog/api/v1",
"before": [
"\\App\\Middleware\\AuthHttpBeforeMiddleware"
],
"routes": [
{ "methods":"DELETE", "path":"/signout", "handler":"\\App\\Controllers\\v1\\SignOutController" },
{ "methods":[], "path":"/accounts[/{uuid}]", "handler":"\\App\\Controllers\\v1\\BlogAccountController" },
{ "methods":[], "path":"/blogs[/{uuid}]", "handler":"\\App\\Controllers\\v1\\BlogBlogController" },
{ "methods":[], "path":"/articles[/{uuid}]", "handler":"\\App\\Controllers\\v1\\BlogArticleController" },
{ "methods":[], "path":"/comments[/{uuid}]", "handler":"\\App\\Controllers\\v1\\BlogCommentController" }
],
"after": []
},
{
"name":"Default",
"notes": "Default route if nothing matches",
"prefix": "",
"before": [],
"routes": [
{ "methods":[], "path":"/", "handler":"\\App\\Controllers\\v1\\DefaultController" }
],
"after": []
}
]
}