Commit Graph

16 Commits

Author SHA1 Message Date
Flavio Fois
576ce0b1b5 add v2 API routes for admin and bug report management with rate limiting
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 43s
2026-03-23 21:29:50 +01:00
Flavio Fois
9cc0f3157c add developer documentation and custom rate limiter with banning
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 46s
Add a comprehensive guide for developers transitioning from Node/PHP and implement a new middleware to handle IP-based rate limiting with temporary banning functionality. Also refactors configuration loading to use a singleton pattern for better resource management.
2026-03-23 19:10:29 +01:00
Flavio Fois
6c8b400a4a add docker configuration and gitea workflow for automated image builds
Introduce a multi-stage Dockerfile, docker-compose setup, and a Gitea Actions workflow to automate building and pushing images to the registry. The configuration includes an entrypoint script for persistent logging and a .dockerignore to optimize the build context.
2026-03-23 11:09:25 +01:00
Flavio Fois
84521d8d59 refactor routing into a modular and versioned structure
Move inline route definitions from main.go into a dedicated internal/routes package. This organization introduces support for API versioning (v1) and separates endpoint logic into specialized modules for administration and bug reporting.
2026-03-23 09:18:16 +01:00
Flavio Fois
da650c2b82 enhance bug report handling with pagination, filtering, and improved response structure 2026-03-19 09:00:07 +01:00
Flavio Fois
9df575067a add database schema migration for bug reports and users tables 2026-03-18 13:04:47 +01:00
Flavio Fois
210eefe4ce improve file handling in bug report route to ensure proper closure and error logging 2026-03-18 10:54:19 +01:00
Flavio Fois
42623a47bd update configuration to include database connection settings and adjust connection management 2026-03-18 10:54:15 +01:00
Flavio Fois
15ef46d413 refactor bug report response to use embedded template for report formatting 2026-03-18 09:40:10 +01:00
Flavio Fois
3f54e1cea4 refactor bug report handlers to use centralized JSON response functions and add delete functionality 2026-03-18 09:32:01 +01:00
Flavio Fois
52947965db add status management for bug reports and update routing 2026-03-17 21:14:54 +01:00
Flavio Fois
4058cbe17c add MIT license and rename health handler file
Add the MIT license file and rename the health handler to follow the project's naming convention for route files.
2026-03-17 18:27:55 +01:00
Flavio Fois
45dbe480a5 add bug report creation handler and update routing structure 2026-03-17 18:20:14 +01:00
Flavio Fois
c61afa45c7 implement admin key authentication and refactor API key handling 2026-03-17 16:13:48 +01:00
Flavio Fois
8097be88a6 refactor bug report structure and add API endpoints for bug report management 2026-03-17 15:08:54 +01:00
Flavio Fois
08ff1da469 add initial project structure with configuration, models, and API key authentication 2026-03-17 12:21:48 +01:00