refactor(api): reorder imports and update code formatting across repository endpoints
- Reordered actix-web imports to standardize import order - Reordered crate module imports to follow alphabetical ordering - Updated function calls to use multi-line formatting for better readability - Standardized blank lines around documentation comments - Applied consistent formatting to response handling methods - Normalized import organization across all repository-related API files - Improved code consistency and maintainability through standardized formatting - Applied formatting updates to all repository endpoint implementations
This commit is contained in:
+9
-1
@@ -2,14 +2,22 @@ use actix_web::web;
|
||||
use actix_web::web::scope;
|
||||
|
||||
use crate::api::auth;
|
||||
use crate::api::issue;
|
||||
use crate::api::repo;
|
||||
use crate::api::user;
|
||||
use crate::api::workspace;
|
||||
|
||||
pub fn init_routes(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
scope("/api/v1")
|
||||
.configure(auth::configure)
|
||||
.configure(user::configure)
|
||||
.configure(workspace::configure)
|
||||
.configure(repo::configure),
|
||||
.configure(repo::configure)
|
||||
.service(
|
||||
scope("/workspaces/{workspace_name}")
|
||||
.configure(issue::configure)
|
||||
.service(scope("/repos/{repo_name}").configure(issue::configure_repo_level)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user