Commit Graph

4 Commits

Author SHA1 Message Date
fabio 3461395eb3 feat(tsrpc): enhance TypeScript API generation with improved endpoint handling and imports
- Added a new function `GetApiFile` to generate the TypeScript API file dynamically based on environment variables.
- Updated `TSEndpoint` struct to include an `Imports` map for tracking TypeScript imports.
- Enhanced `VerifyTypes` method to manage request and response types more effectively, including nullable types.
- Modified `ToTs` method to generate TypeScript code with improved type handling.
- Introduced `TSFiles` struct for managing generated TypeScript files and saving them to the filesystem.
- Implemented formatting of generated TypeScript code using Prettier.
- Added new TypeScript files for various endpoints, including user management and system utilities.
- Updated existing TypeScript files to reflect changes in API structure and response types.
2026-04-15 18:25:31 +02:00
fabio 5b9fe6c9b7 Refactor configuration and database initialization: replace LoadConfig with GetConfig, introduce DbConfig struct, and streamline token service retrieval. Remove unused request types and enhance user refresh token handling. 2026-04-09 09:21:38 +02:00
fabio 3731e6e409 Refactor user management module: rename package, restructure user controller, and implement authentication features
- Renamed package from `user` to `users` for clarity.
- Updated UserController to include token service for authentication.
- Implemented user login, registration, password reset, and token validation functionalities.
- Introduced user roles and permissions management.
- Added session tracking for user logins.
- Created migration script for user-related database tables.
- Refactored user model to include details and preferences.
- Enhanced password handling with secure hashing and verification.
- Updated routes to include new authentication endpoints and middleware.
2026-04-06 21:37:06 +02:00
fabio 2c7e9caf45 first commit 2026-03-16 20:03:59 +01:00