From ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 14 Jun 2022 15:04:17 -0400 Subject: Add salary transparency page (#492) * Move dhall data and types into `/dhall` folder * Reformat salary transparency data into Dhall * Wire up the old salary transparency page with a custom element * Wire up a new salary transparency page * Expose raw data as JSON * Make dhall types more portable * Remove gallery from the navbar * Make signal boost page point to the new data location * Add salary transparency page to the footer of the site * Add site update post for this Signed-off-by: Xe --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 7611176..eb4b9e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -155,6 +155,11 @@ async fn main() -> Result<()> { }, ), ) + // api + .route( + "/api/salary_transparency.json", + get(handlers::salary_transparency_json), + ) // static pages .route("/", get(handlers::index)) .route("/contact", get(handlers::contact)) @@ -162,6 +167,7 @@ async fn main() -> Result<()> { .route("/resume", get(handlers::resume)) .route("/patrons", get(handlers::patrons)) .route("/signalboost", get(handlers::signalboost)) + .route("/salary-transparency", get(handlers::salary_transparency)) // feeds .route("/blog.json", get(handlers::feeds::jsonfeed)) .route("/blog.atom", get(handlers::feeds::atom)) -- cgit v1.2.3