File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -146,17 +146,17 @@ async fn main() -> Result<(), rocket::Error> {
146
146
] ,
147
147
)
148
148
// TODO - not enabling V2 yet, want to write unit-tests and such before potentially people start using them
149
- // .mount(
150
- // "/v2",
151
- // routes![
152
- // api::v2::get_latest_releases,
153
- // api::v2::get_recent_releases,
154
- // api::v2::get_release_changelog,
155
- // api::v2::get_release_list,
156
- // api::v2::handle_github_webhook_release_event,
157
- // api::v2::admin_add_new_api_key,
158
- // ],
159
- // )
149
+ . mount (
150
+ "/v2" ,
151
+ routes ! [
152
+ // api::v2::get_latest_releases,
153
+ // api::v2::get_recent_releases,
154
+ // api::v2::get_release_changelog,
155
+ // api::v2::get_release_list,
156
+ api:: v2:: handle_github_webhook_release_event,
157
+ // api::v2::admin_add_new_api_key,
158
+ ] ,
159
+ )
160
160
. attach ( fairings:: CORSHeaderFairing :: default ( ) )
161
161
. manage ( db)
162
162
. manage ( rate_limiter)
You can’t perform that action at this time.
0 commit comments