You've already forked AstralRinth
forked from didirus/AstralRinth
21 lines
391 B
Rust
21 lines
391 B
Rust
#![allow(dead_code)]
|
|
|
|
use super::environment::LocalService;
|
|
use actix_web::dev::ServiceResponse;
|
|
use std::rc::Rc;
|
|
|
|
pub mod oauth;
|
|
pub mod oauth_clients;
|
|
pub mod tags;
|
|
|
|
#[derive(Clone)]
|
|
pub struct ApiV3 {
|
|
pub test_app: Rc<dyn LocalService>,
|
|
}
|
|
|
|
impl ApiV3 {
|
|
pub async fn call(&self, req: actix_http::Request) -> ServiceResponse {
|
|
self.test_app.call(req).await.unwrap()
|
|
}
|
|
}
|