diff options
| author | Bobby <[email protected]> | 2026-03-13 18:25:44 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-03-13 18:25:44 +0530 |
| commit | 344d02a7feddefb5c08f88dbe5f3a3f7e7da385f (patch) | |
| tree | 94deed23d82d7f868721cc00b5550f5c27e8b8f7 /garden/src/store/stats.ts | |
| parent | 9f808807a557fc10a38a44cb52be6bfcdfda68b2 (diff) | |
| download | pagoda-main.tar.xz pagoda-main.zip | |
- Introduced new routes for letters and their details.
- Created pages for displaying letter details and listing letters.
- Added new types for letters, including participants, messages, and attachments.
- Implemented API calls for fetching letters and managing messages (reply, edit, delete).
- Enhanced stats to include unread letters and pending districts for staff users.
- Updated styles for letters and their components.
- Added privacy settings for letters (public and friends).
- Modified user model to include letter privacy settings.
- Improved error handling and user feedback in the UI.
Diffstat (limited to 'garden/src/store/stats.ts')
| -rw-r--r-- | garden/src/store/stats.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/garden/src/store/stats.ts b/garden/src/store/stats.ts index e13164f..7082319 100644 --- a/garden/src/store/stats.ts +++ b/garden/src/store/stats.ts @@ -5,7 +5,8 @@ import type { Stats } from "../types/stats"; const [data, setData] = createSignal<Stats | null>(null); async function load() { - const response = await api<Stats>("/stats/"); + const token = localStorage.getItem("token"); + const response = await api<Stats>("/stats/", { token }); if (response.ok) { setData(response.data); } |
