diff options
| author | Xe Iaso <me@christine.website> | 2022-07-04 15:12:23 +0000 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-07-04 15:12:23 +0000 |
| commit | 8b6056fc09320473577f458fa86bda26159ea43b (patch) | |
| tree | 50b503cddf70719724c9e687791f827f002d0bd0 /src/main.rs | |
| parent | 5d7daf179ee80f9f2be5345164a419fab051a651 (diff) | |
| download | xesite-8b6056fc09320473577f458fa86bda26159ea43b.tar.xz xesite-8b6056fc09320473577f458fa86bda26159ea43b.zip | |
add API calls for my blogposts/talks
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |
