add gitea sig header check, add Json errors, begin AppState
This commit is contained in:
+11
-3
@@ -1,5 +1,13 @@
|
||||
use crate::gitea::WebhookType;
|
||||
use crate::{env::EnvConfig, gitea::WebhookType};
|
||||
|
||||
pub async fn exec(webhook: WebhookType) {
|
||||
pub struct Bot {
|
||||
config: EnvConfig,
|
||||
}
|
||||
|
||||
}
|
||||
impl Bot {
|
||||
pub fn new(config: EnvConfig) -> Self {
|
||||
Self { config }
|
||||
}
|
||||
|
||||
pub async fn exec(&self, webhook: WebhookType) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user