refactor!: Use gin router instead chi router

- Removed chi dependencies
- Updated router registration logic
This commit is contained in:
2025-11-04 13:44:18 +03:00
parent 7e9653606e
commit 7bc4ce8c96
13 changed files with 499 additions and 294 deletions

View File

@@ -1,12 +1,23 @@
package controller
import (
"github.com/gin-gonic/gin"
"github.com/go-andiamo/chioas"
"github.com/go-chi/chi/v5"
)
// SecuredController - means, controller has middlewares
// Maybe should rename it later
type SecuredController interface {
Middlewares() []gin.HandlerFunc
}
type DocumentateController interface {
Documentate() (*chioas.Paths, *chioas.Components)
}
type Controller interface {
New() Controller
Group(r chi.Router)
Documentate() (*chioas.Paths, *chioas.Components)
Handler() gin.HandlerFunc
Method() string
Path() string
}