File tree 1 file changed +0
-9
lines changed 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -864,13 +864,11 @@ func New(options *Options) *API {
864
864
r .Use (
865
865
apiKeyMiddleware ,
866
866
)
867
- api .APISubRoutes .Organizations = r
868
867
r .Get ("/" , api .organizations )
869
868
r .Route ("/{organization}" , func (r chi.Router ) {
870
869
r .Use (
871
870
httpmw .ExtractOrganizationParam (options .Database ),
872
871
)
873
- api .APISubRoutes .SingleOrganization = r
874
872
r .Get ("/" , api .organization )
875
873
r .Post ("/templateversions" , api .postTemplateVersionsByOrganization )
876
874
r .Route ("/templates" , func (r chi.Router ) {
@@ -1335,13 +1333,6 @@ type API struct {
1335
1333
1336
1334
// APIHandler serves "/api/v2"
1337
1335
APIHandler chi.Router
1338
- // APISubRoutes are AGPL sub routers that are saved for enterprise
1339
- // to add endpoints to. Chi does not allow conflicting routers to
1340
- // exist, so this is the easier way to "merge" routers.
1341
- APISubRoutes struct {
1342
- Organizations chi.Router
1343
- SingleOrganization chi.Router
1344
- }
1345
1336
// RootHandler serves "/"
1346
1337
RootHandler chi.Router
1347
1338
You can’t perform that action at this time.
0 commit comments