diff options
| author | Xe Iaso <me@christine.website> | 2022-06-14 15:04:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-14 15:04:17 -0400 |
| commit | ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f (patch) | |
| tree | 9888fe24eb3ea35ea0f9b54af8723b4a000e6ad9 /src/main.rs | |
| parent | 7541df778165b5a96da714256d011685b476abc0 (diff) | |
| download | xesite-ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f.tar.xz xesite-ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f.zip | |
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 <me@xeiaso.net>
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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)) |
