@@ -54,16 +54,9 @@ func setupTypeRoutes(router *mux.Router, baseURL string, typeHandler *handlers.T
54
54
Methods (http .MethodGet ).
55
55
HandlerFunc (typeHandler .GetAll )
56
56
57
- // TODO: remove this route when
58
- // getting type details already handled on GET baseUrl/{name}
59
- router .Path (baseURL + "/{name}/details" ).
60
- Methods (http .MethodGet ).
61
- HandlerFunc (typeHandler .GetType )
62
-
63
- // TODO: switch this route to return type details
64
57
router .Path (baseURL + "/{name}" ).
65
58
Methods (http .MethodGet , http .MethodHead ).
66
- HandlerFunc (typeHandler .ListTypeRecords )
59
+ HandlerFunc (typeHandler .GetType )
67
60
68
61
router .Path (baseURL + "/{name}/records" ).
69
62
Methods (http .MethodGet , http .MethodHead ).
@@ -81,20 +74,11 @@ func setupTypeRoutes(router *mux.Router, baseURL string, typeHandler *handlers.T
81
74
Methods (http .MethodDelete ).
82
75
HandlerFunc (typeHandler .DeleteRecord )
83
76
84
- router .Path (baseURL + "/{name}" ).
85
- Methods (http .MethodPut ).
86
- HandlerFunc (typeHandler .IngestRecord )
87
-
88
77
router .Path (baseURL + "/{name}/records" ).
89
78
Methods (http .MethodPut ).
90
79
HandlerFunc (typeHandler .IngestRecord )
91
80
92
81
router .Path (baseURL + "/{name}/records/{id}" ).
93
82
Methods (http .MethodGet , http .MethodHead ).
94
83
HandlerFunc (typeHandler .GetTypeRecord )
95
-
96
- // TODO: remove this once no more request is coming
97
- router .Path (baseURL + "/{name}/{id}" ).
98
- Methods (http .MethodGet , http .MethodHead ).
99
- HandlerFunc (typeHandler .GetTypeRecord )
100
84
}
0 commit comments