feat(api): implement pull request assignees and check runs endpoints
- Add PR assignees API with list, assign, and unassign operations - Add PR check runs API with create, update, list, and delete operations - Implement workspace finding by ID method in core service - Update .gitignore to include .env* files while preserving .env.example - Reorder imports in multiple API files for consistency - Format function calls with proper line breaks across PR-related APIs - Add wiki revision comparison endpoint with proper schema definitions - Integrate new API modules into main application setup - Add health check, readiness probe, and OpenAPI endpoints to main server - Configure session management and dependency injection in main application
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
pub mod compare_revisions;
|
||||
pub mod create_page;
|
||||
pub mod delete_page;
|
||||
pub mod get_page;
|
||||
pub mod get_revision;
|
||||
pub mod list_pages;
|
||||
pub mod list_revisions;
|
||||
pub mod revert_page;
|
||||
pub mod update_page;
|
||||
|
||||
use actix_web::web;
|
||||
|
||||
/// Configure wiki routes under `/workspaces/{workspace_name}/repos/{repo_name}/wiki`
|
||||
pub fn configure(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::scope("/wiki")
|
||||
// Pages
|
||||
.route("", web::get().to(list_pages::list_pages))
|
||||
.route("", web::post().to(create_page::create_page))
|
||||
.route("/{slug}", web::get().to(get_page::get_page))
|
||||
.route("/{slug}", web::put().to(update_page::update_page))
|
||||
.route("/{slug}", web::delete().to(delete_page::delete_page))
|
||||
.route("/{slug}/revert", web::post().to(revert_page::revert_page))
|
||||
// Revisions
|
||||
.route(
|
||||
"/{slug}/revisions",
|
||||
web::get().to(list_revisions::list_revisions),
|
||||
)
|
||||
.route(
|
||||
"/{slug}/revisions/{version}",
|
||||
web::get().to(get_revision::get_revision),
|
||||
)
|
||||
.route(
|
||||
"/{slug}/compare",
|
||||
web::get().to(compare_revisions::compare_revisions),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user