Commit 11f24ae
committed
Add API backend and optimize whitelist fetching
- Added Node.js/Express API server with JWT authentication
- Implemented whitelist CRUD endpoints (GET, POST, PUT, DELETE)
- Added MongoDB integration with Mongoose
- Updated .gitignore for Node.js dependencies
- Optimized Android app whitelist fetching:
* Two-level caching (HTTP + in-memory)
* Exponential backoff retry logic
* Automatic token refresh on 401 errors
* Improved error handling and offline support
- Added API documentation and Postman collection
- Updated server IP to 192.168.2.244:50011 parent 7269bad commit 11f24ae
File tree
10 files changed
+1294
-0
lines changed- api
- middleware
- models
- routes
10 files changed
+1294
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments