@@ -54,16 +54,9 @@ func setupTypeRoutes(router *mux.Router, baseURL string, typeHandler *handlers.T
5454 Methods (http .MethodGet ).
5555 HandlerFunc (typeHandler .GetAll )
5656
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
6457 router .Path (baseURL + "/{name}" ).
6558 Methods (http .MethodGet , http .MethodHead ).
66- HandlerFunc (typeHandler .ListTypeRecords )
59+ HandlerFunc (typeHandler .GetType )
6760
6861 router .Path (baseURL + "/{name}/records" ).
6962 Methods (http .MethodGet , http .MethodHead ).
@@ -81,20 +74,11 @@ func setupTypeRoutes(router *mux.Router, baseURL string, typeHandler *handlers.T
8174 Methods (http .MethodDelete ).
8275 HandlerFunc (typeHandler .DeleteRecord )
8376
84- router .Path (baseURL + "/{name}" ).
85- Methods (http .MethodPut ).
86- HandlerFunc (typeHandler .IngestRecord )
87-
8877 router .Path (baseURL + "/{name}/records" ).
8978 Methods (http .MethodPut ).
9079 HandlerFunc (typeHandler .IngestRecord )
9180
9281 router .Path (baseURL + "/{name}/records/{id}" ).
9382 Methods (http .MethodGet , http .MethodHead ).
9483 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 )
10084}
0 commit comments