refactor: transitioned auth controller to use the new controller structure;
feat: setup DI for controllers; refactor: marked old utils and routes package parts as deprecated
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// Deprecated: use controllers.GetRequest method for the new controllers
|
||||
func GetRequest[T any](c *gin.Context) (*dto.Request[T], bool) {
|
||||
|
||||
req, ok := c.Get("request")
|
||||
|
||||
Reference in New Issue
Block a user