feat(server): add trailing slash normalization and API root endpoint

- Add tower-http normalize-path feature to handle trailing slashes
- Implement NormalizePathLayer to trim trailing slashes from URLs
- Add GET /api/ endpoint with API description message
- Fix OAuth callback redirect to use /api/profile path
This commit is contained in:
Ryan Walters
2025-11-02 22:51:17 -06:00
parent 83e389d789
commit 52dee3eee4
3 changed files with 10 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ pub async fn oauth_callback_handler(
});
}
(StatusCode::FOUND, Redirect::to("/profile")).into_response()
(StatusCode::FOUND, Redirect::to("/api/profile")).into_response()
}
/// Handles the request to the profile endpoint.