Page abstraction
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user