inbox
: Add empty /inbox
handler
This commit is contained in:
parent
30610df0f5
commit
8552052a46
2 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
use anyhow::Context;
|
||||
|
||||
mod config;
|
||||
mod route;
|
||||
|
||||
|
||||
#[tokio::main]
|
||||
|
@ -9,7 +10,8 @@ async fn main() -> anyhow::Result<std::convert::Infallible> {
|
|||
log::debug!("Logging initialized!");
|
||||
|
||||
log::trace!("Creating Axum router...");
|
||||
let app = axum::Router::new();
|
||||
let app = axum::Router::new()
|
||||
.route("/inbox", axum::routing::post(route::inbox_handler));
|
||||
log::trace!("Axum router created successfully!");
|
||||
|
||||
log::trace!("Creating Tokio listener...");
|
||||
|
|
8
acrate-inbox/src/route.rs
Normal file
8
acrate-inbox/src/route.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
#[allow(unreachable_code)]
|
||||
pub async fn inbox_handler() {
|
||||
todo!("pre-validation hook");
|
||||
todo!("validate signature");
|
||||
todo!("post-validation hook");
|
||||
todo!("database storage");
|
||||
todo!("post-storage hook");
|
||||
}
|
Loading…
Reference in a new issue