1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 06:49:37 +02:00

Prevent unnecessary redirect when requesting users

Opening the share dialog, the frontend is requesting `/auth/users/`
which is always redirected to `/auth/users`. That's an unnecessary extra
step.

This patch makes the front-end request `/auth/users` in the first place.
This commit is contained in:
Lars Kiesow 2025-04-06 14:32:19 +02:00
parent dbd417ca87
commit af8a9acbae
No known key found for this signature in database
GPG key ID: 5DAFE8D9C823CE73
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@
if (modal) {
modal.showModal();
}
let res = await fetch(`/auth/users/`);
let res = await fetch(`/auth/users`);
if (res.ok) {
let data = await res.json();
allUsers = data;