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:
zhenyi
2026-06-07 19:41:33 +08:00
parent 7368ba676c
commit 4028f0d943
149 changed files with 4962 additions and 369 deletions
+9 -1
View File
@@ -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)),
),
);
}