Commit 8a1ed7e
committed
fix: add /api/stats and /api/og to rate limiting middleware
- Both endpoints call fetchGitHubContributions() on every request
- /api/og always bypasses cache, making every call a fresh GitHub API hit
- Add /api/stats/:path* and /api/og/:path* to middleware matcher
- Consistent with how /api/streak and /api/github are already protected1 parent 9b64cab commit 8a1ed7e
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
56 | 64 | | |
0 commit comments