diff options
| author | Xe Iaso <me@christine.website> | 2022-07-10 09:58:57 -0400 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-07-10 09:58:57 -0400 |
| commit | b32f5a25afb7b9901476164663c1b7099dcec7a8 (patch) | |
| tree | 3c97a73d002c46fef0184fad6c8c7fcf9b7bc30a /src/main.rs | |
| parent | 18ae8a01f883f19870df86bfa2e5cf288f79bce4 (diff) | |
| download | xesite-b32f5a25afb7b9901476164663c1b7099dcec7a8.tar.xz xesite-b32f5a25afb7b9901476164663c1b7099dcec7a8.zip | |
consolidate API routes
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index e820ba5..cdcae68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -156,12 +156,13 @@ async fn main() -> Result<()> { ), ) // api + .route("/api/new_post", get(handlers::feeds::new_post)) .route( "/api/salary_transparency.json", - get(handlers::salary_transparency_json), + get(handlers::api::salary_transparency), ) - .route("/api/blog/:name", get(handlers::blog::post_json)) - .route("/api/talks/:name", get(handlers::talks::post_json)) + .route("/api/blog/:name", get(handlers::api::blog)) + .route("/api/talks/:name", get(handlers::api::talk)) // static pages .route("/", get(handlers::index)) .route("/contact", get(handlers::contact)) |
