️(frontend) add trailing slash on the /me endpoint call

The `/me` endpoint was called without a trailing slash, so every
request was going through a 301 redirect before hitting the actual
endpoint.

This endpoint is called by every user at least once per session, so
based on the logs, avoiding the redirect should cut the volume of
requests hitting it by around 10%.
This commit is contained in:
lebaudantoine
2026-09-04 14:13:15 +02:00
committed by aleb_the_flash
parent 164ac8d948
commit 67e7d382e3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ and this project adheres to
- 🐛(frontend) center Avatar initials with a font-aware cap-height ratio
- 🐛(frontend) keep feedback buttons on one line for fr/es/en
- ⚡️(frontend) increase lobby polling interval on both sides
- ⚡️(frontend) add trailing slash on the /me endpoint call
## [1.30.0] - 2026-09-01
@@ -18,7 +18,7 @@ export const fetchUser = (
}
): Promise<ApiUser | false> => {
return new Promise((resolve, reject) => {
fetchApi<ApiUser>('/users/me')
fetchApi<ApiUser>('/users/me/')
.then(resolve)
.catch((error) => {
// we assume that a 401 means the user is not logged in