rename /me route to /session_id/check to make more sense

This commit is contained in:
kittentm 2026-02-21 04:45:47 +01:00
commit adaf6370ff
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ document.addEventListener("DOMContentLoaded", function () {
async function checkExistingSession() {
try {
const response = await fetch(`${apiBase}/api/v1/users/me`, {
const response = await fetch(`${apiBase}/api/v1/session_id/check`, {
method: 'GET',
credentials: 'include'
});

View file

@ -10,7 +10,7 @@ $(document).ready(function () {
async function checkExistingSession() {
try {
const response = await fetch(apiBase + "/api/v1/users/me", {
const response = await fetch(apiBase + "/api/v1/session_id/check", {
method: 'GET',
credentials: 'include'
});