Page abstraction
All checks were successful
CI / Check typos (push) Successful in 10s
CI / Check links (push) Successful in 34s
CI / Clippy (push) Successful in 41s
CI / Build and test (push) Successful in 2m4s
CI / Build container (push) Successful in 3m15s

This commit is contained in:
2025-11-04 08:55:14 -08:00
parent acc057e4cb
commit 4504a88f4b
20 changed files with 522 additions and 233 deletions

View File

@@ -1,8 +1,9 @@
use axum::Router;
use libservice::ToService;
use utoipa::OpenApi;
mod components;
mod page;
mod pages;
mod routes;
pub struct WebpageService {}
@@ -20,11 +21,6 @@ impl ToService for WebpageService {
Some(routes::router())
}
#[inline]
fn make_openapi(&self) -> utoipa::openapi::OpenApi {
routes::Api::openapi()
}
#[inline]
fn service_name(&self) -> Option<String> {
Some("webpage".to_owned())