From 9e8c900e151c5e0637630b8fecb334314e52a2cc Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 5 Jan 2023 16:14:29 -0500 Subject: first attempt at multiple author support Signed-off-by: Xe Iaso --- src/main.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index aaf4ea4..d4b5692 100644 --- a/src/main.rs +++ b/src/main.rs @@ -157,14 +157,16 @@ async fn main() -> Result<()> { ), ) // api + .route("/api/authors", get(handlers::api::authors)) .route("/api/pronouns", get(handlers::api::pronouns)) .route("/api/new_post", get(handlers::feeds::new_post)) - .route( - "/api/salary_transparency.json", - get(handlers::api::salary_transparency), - ) .route("/api/blog/:name", get(handlers::api::blog)) .route("/api/talks/:name", get(handlers::api::talk)) + // json-ld metadata + .route( + "/api/json-ld/PronounSet", + get(handlers::json_ld::pronoun_set), + ) // static pages .route("/", get(handlers::index)) .route("/contact", get(handlers::contact)) -- cgit v1.2.3