rybbit/server
Bill Yang 8fcfb58dc3 Implement authedFetchWithError for improved error handling in API requests
- Added a new utility function `authedFetchWithError` to handle fetch requests with error checking.
- Updated existing API calls in `organizations.ts`, `sites.ts`, and other files to utilize the new error handling function.
- Refactored the `getUserOrganizations`, `addSite`, `deleteSite`, and other functions to enhance error management and response handling.
- Adjusted the `getUserHasAccessToSite` function to support admin-only checks, improving authorization logic.
- Modified the `AddMemberDialog` to set the default role to "admin" for new members, enhancing user management capabilities.
2025-04-26 09:19:01 -07:00
..
public Update dependencies and enhance layout styling 2025-04-18 23:20:17 -07:00
src Implement authedFetchWithError for improved error handling in API requests 2025-04-26 09:19:01 -07:00
.dockerignore Second commit 2025-01-16 22:39:11 -08:00
docker-entrypoint.sh Update docker-entrypoint.sh to force database migrations during startup 2025-04-22 20:10:54 -07:00
Dockerfile update docker 2025-04-21 23:03:52 -07:00
drizzle.config.ts init cloud version (#46) 2025-03-09 18:06:48 -07:00
GeoLite2-City.mmdb Remove GeoLite2-City.mmdb database file and update geolocation.ts to adjust database path handling and improve error management for uninitialized reader. 2025-04-21 22:44:51 -07:00
package-lock.json Enhance analytics API with SQL string handling and validation improvements 2025-04-25 15:37:27 -07:00
package.json Enhance analytics API with SQL string handling and validation improvements 2025-04-25 15:37:27 -07:00
tsconfig.json auth (#3) 2025-02-15 12:55:28 -08:00