mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
httpd: Move test utility mod from inside api to root
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#[cfg(test)]
|
||||
pub mod test;
|
||||
pub mod auth;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
@@ -21,7 +20,6 @@ use radicle::identity::Id;
|
||||
use radicle::storage::{ReadRepository, ReadStorage};
|
||||
use radicle::Profile;
|
||||
|
||||
mod auth;
|
||||
mod axum_extra;
|
||||
mod error;
|
||||
mod json;
|
||||
@@ -70,6 +68,11 @@ impl Context {
|
||||
pub fn profile(&self) -> &Arc<Profile> {
|
||||
&self.profile
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn sessions(&self) -> &Arc<RwLock<HashMap<SessionId, auth::Session>>> {
|
||||
&self.sessions
|
||||
}
|
||||
}
|
||||
|
||||
pub fn router(ctx: Context) -> Router {
|
||||
|
||||
Reference in New Issue
Block a user