feat: Basic HTTP listener

This commit is contained in:
selfhoster selfhoster 2026-09-03 21:50:32 +02:00
commit 452da73413
7 changed files with 350 additions and 7 deletions

View file

@ -14,7 +14,7 @@ impl<D: DatabaseInterface> DatabaseInterface for Database<D> {
}
}
pub trait DatabaseInterface {
pub trait DatabaseInterface: Clone + Send + Sync + 'static {
async fn get_user(&self, user: &UserRef) -> Result<Option<User>, BoxedError>;
async fn create_user(
&mut self,