mahdium and Qwen-Coder
f136ae58b3
Refactor: Implement uber-go/fx dependency injection
...
- Replace global variable pattern with proper dependency injection
- Add uber-go/fx for automatic dependency resolution
- Refactor all services and handlers to use constructor injection
- Eliminate fragile initialization order dependencies
- Improve testability and modularity
- Add structured logging with zap
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2025-09-16 11:41:01 +03:30
mahdium
8dcdd27745
Minor improvements to admin panel API
2025-07-29 19:21:15 +03:30
mahdium
71800440be
Add imagekit fallback on no imagekit ID
2025-07-29 17:55:16 +03:30
mahdium
051408fcdd
Added imagekit optimization support
2025-07-29 17:52:39 +03:30
mahdium
ccb810ee69
Improve random post picker
2025-07-25 13:59:28 +03:30
mahdium
714443156e
Fix MariaDB RANDOM() eror
2025-07-25 12:28:07 +03:30
mahdium
7659cca37e
Add web templates and handlers for home, embed card, and admin pages
2025-05-18 12:23:00 +03:30
mahdium
7b601e75ba
Refactor app structure: move models to domain, centralize config and database init - TODO: add jwt
2025-05-17 20:07:29 +03:30
mahdium
cb5149b7bc
Switch from cookie to Bearer token auth and add CORS support - Semi finished
2025-05-16 16:20:30 +03:30
mahdium
2e4b97e4bc
Implement admin media approval endpoints and add JWT role-based auth - NOT TESTED
2025-05-16 14:56:13 +03:30
mahdium
49b38470cf
Remove user authentication and switch to simple admin password check (It wont have more than one admin user so no need for registeration (I LOVE .Net/C# btw))
2025-05-15 20:25:28 +03:30
mahdium
d646515776
Implement user login with password hash verification and username lookup
2025-05-15 12:24:48 +03:30
mahdium
b3fae6b80c
Add user registration with password hashing and restructure handlers directory
2025-05-15 12:10:16 +03:30
mahdium
b30f0d2726
Add API endpoint for random post with preloaded relationships
2025-05-14 20:11:25 +03:30
mahdium
8c7cfbd956
Replace fatal error handling with proper error propagation and logging
2025-05-14 14:55:13 +03:30
mahdium
61a48c1cf4
Add random post selection
2025-05-13 22:58:46 +03:30
mahdium
117fe3dd34
Refactor app context setup and move API fetch logic to PostService
2025-05-13 17:32:29 +03:30
mahdium
a405289b33
Refactor db operations into PostService and add OnConflict for account inserts
2025-05-13 15:47:01 +03:30
mahdium
25d9b67be6
Add user management and improve code organization with context structs
2025-05-13 15:00:42 +03:30