fix(auth, pwa): restore api.auth.me, bump PWA cache to v5.3, and fix CEFR CSS styling

This commit is contained in:
2026-10-06 16:04:58 +03:00
parent a2eb26ced5
commit 15d4987977
4 changed files with 57 additions and 6 deletions
+4 -1
View File
@@ -28,8 +28,11 @@ window.fetch = function(url, options = {}) {
export const api = {
// Auth endpoints
auth: {
async me() {
return await fetch('/api/me');
},
async check() {
const resp = await fetch('/api/me');
const resp = await this.me();
if (resp.ok) {
return await resp.json();
}