e3fe20005b
feat(auth): implement admin management with RootUID enforcement and SetAdmin handler
2025-12-17 22:08:45 +09:00
889f072390
feat(auth): add RequireAdmin middleware to enforce admin access control
2025-12-11 23:16:30 +09:00
2063dffc09
feat(repo): enhance MoveToArchive to compute new IDs for archived episodes
2025-12-11 21:57:17 +09:00
e34d2bf8f1
feat(repo): refactor MoveToArchive to use structured data for improved readability and maintainability
2025-12-11 21:53:09 +09:00
a9de32bed1
feat(repo): format SQL query in MoveToArchive for improved readability
2025-12-11 21:50:21 +09:00
a537eb4fc2
feat(logging): add logging for archive move failures in handlers and episode repository
2025-12-11 21:48:18 +09:00
a0db346ab7
feat(repo): enhance MoveToArchive functionality to handle duplicates and improve error handling
2025-12-11 21:43:50 +09:00
33ccef5142
feat(routes): redesign delete button functionality and restore archive endpoint
2025-12-11 21:33:31 +09:00
8a549504a4
feat(auth): implement Firebase authentication and token verification
...
- Added FirebaseAuth struct and TokenVerifier interface for verifying Firebase ID tokens.
- Introduced FirebaseConfig struct in config to manage Firebase credentials and project ID.
- Implemented OAuth handler for Firebase ID token verification in HTTP handlers.
- Added middleware for authenticating requests using Firebase tokens.
- Updated router to conditionally apply authentication based on configuration.
- Created tests for the new authentication middleware.
- Added request and response types for Firebase OAuth handling.
- Included a sample JSON file for testing purposes.
2025-12-10 19:05:11 +09:00
88f4ee3d4a
Add Danime episode metadata fetching and related API endpoint
...
- Implemented FetchEpisode function to retrieve episode metadata from dアニメストア.
- Added /api/v1/danime GET endpoint to fetch episode details by partId.
- Updated Swagger documentation for the new endpoint and response structure.
- Created DanimeEpisodeResponse type for API responses.
- Added tests for the new functionality and handlers.
2025-12-06 19:26:45 +09:00
10c54e9821
Implement default start time for create show endpoint and update documentation
2025-12-06 18:36:57 +09:00
338403d80d
Add create show endpoint with validation and error handling
2025-12-06 18:31:19 +09:00
51f640bc99
Squashed commit of the following:
...
commit f17f943bc149fef1a0ef3f884cf8653e70469ac5
Author: Nik Afiq <nik.afiq98@ymail.com>
Date: Fri Dec 5 22:33:01 2025 +0900
Fix JSON tags for Episode struct fields in model.go
2025-12-05 22:47:02 +09:00
6ac23c24ee
Add tests for episode repository methods and refactor service interface
2025-12-03 20:34:08 +09:00
ab7f919d0e
Refactor episode service and handlers to use UseCases interface
2025-12-02 20:56:45 +09:00
f8837fed9f
Refactor episode management: introduce core episode model and update service/repo interfaces
2025-12-02 20:47:46 +09:00
e6fe4449ea
Changed folder structure to allow swagger to generate openapi file
2025-11-22 21:33:04 +09:00
009e79332a
changed the delete to handle parameter differently
2025-11-22 20:26:30 +09:00
d819b04020
Added env load from one directory higher
2025-11-22 19:38:22 +09:00
70c76c62c3
Added delete function
2025-11-22 19:37:06 +09:00
062c659cde
API change
2025-11-11 22:48:57 +09:00
975c031bd8
Added /time endpoint for better sync experience
2025-11-11 16:23:25 +09:00
42eb154479
Added get all shows
2025-11-05 11:46:24 +09:00
0ad8a01564
Added test
2025-11-05 00:13:47 +09:00
df9c38de7a
Added archiving endpoint
2025-11-05 00:09:14 +09:00
57d7faa6ca
Added api versioning
2025-11-04 23:53:32 +09:00
7a3a732efb
Added set current
2025-11-04 23:29:34 +09:00
0c4453500f
Backend implementation
2025-11-04 21:22:13 +09:00