Files
gitks/api/routes.rs
T
zhenyi 4028f0d943 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
2026-06-07 19:41:33 +08:00

24 lines
670 B
Rust

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)
.service(
scope("/workspaces/{workspace_name}")
.configure(issue::configure)
.service(scope("/repos/{repo_name}").configure(issue::configure_repo_level)),
),
);
}