add gitea sig header check, add Json errors, begin AppState
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
use crate::{bot::Bot, env::EnvConfig};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct AppState {
|
||||
pub bot: Arc<Mutex<Bot>>,
|
||||
pub config: EnvConfig,
|
||||
}
|
||||
Reference in New Issue
Block a user