From 8b6056fc09320473577f458fa86bda26159ea43b Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 4 Jul 2022 15:12:23 +0000 Subject: add API calls for my blogposts/talks Signed-off-by: Xe Iaso --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index eb4b9e5..e820ba5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -160,6 +160,8 @@ async fn main() -> Result<()> { "/api/salary_transparency.json", get(handlers::salary_transparency_json), ) + .route("/api/blog/:name", get(handlers::blog::post_json)) + .route("/api/talks/:name", get(handlers::talks::post_json)) // static pages .route("/", get(handlers::index)) .route("/contact", get(handlers::contact)) -- cgit v1.2.3