Reorganize

This commit is contained in:
2025-11-02 11:08:51 -08:00
parent 14d8a9b00c
commit fd48f75245
75 changed files with 8 additions and 17 deletions

View File

@@ -0,0 +1,33 @@
use axum::Router;
use libservice::ToService;
use utoipa::OpenApi;
mod ast;
mod components;
mod routes;
pub struct WebpageService {}
impl WebpageService {
#[inline]
pub fn new() -> Self {
Self {}
}
}
impl ToService for WebpageService {
#[inline]
fn make_router(&self) -> Option<Router<()>> {
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())
}
}