feat(ops): register log and doc routes from shared core

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
caoqianming 2026-04-20 08:19:21 +08:00
parent b651b6af66
commit cea7726106
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ async fn no_cache(
pub fn build_router(state: AppState) -> Router {
Router::new()
.route("/api/health", get(health_check))
.route("/api/logs", get(plc_platform_core::handler::log::get_logs))
.route("/api/logs/stream", get(plc_platform_core::handler::log::stream_logs))
.route("/api/docs/api-md", get(crate::handler::doc::get_api_md))
.route("/api/docs/readme-md", get(crate::handler::doc::get_readme_md))
.nest(
"/ui",
Router::new()