chore: update routes to use utoipa

This commit is contained in:
Zomatree
2025-11-17 22:13:07 +00:00
parent ac60b2c795
commit 43c94b68b0
110 changed files with 891 additions and 231 deletions
+6 -1
View File
@@ -1,5 +1,6 @@
use revolt_config::Settings;
use revolt_database::{util::utoipa::TokenSecurity};
use revolt_database::util::utoipa::TokenSecurity;
use revolt_result::ErrorAddon;
pub use rocket::http::Status;
pub use rocket::response::Redirect;
use rocket::{Build, Rocket};
@@ -236,8 +237,12 @@ pub fn mount(config: Settings, mut rocket: Rocket<Build>) -> Rocket<Build> {
),
modifiers(
&Extensions,
// TODO: merge these together when authifier is moved into the backend
&SecurityAddon,
&TokenSecurity,
&ErrorAddon,
),
)]
pub struct ApiDoc;