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:
@@ -15,17 +15,17 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
// @title Easywish client API
|
||||
// @version 1.0
|
||||
// @description Easy and feature-rich wishlist.
|
||||
// @license.name GPL-3.0
|
||||
// @title Easywish client API
|
||||
// @version 1.0
|
||||
// @description Easy and feature-rich wishlist.
|
||||
// @license.name GPL-3.0
|
||||
|
||||
// @BasePath /api/
|
||||
// @Schemes http
|
||||
// @BasePath /api/
|
||||
// @Schemes http
|
||||
|
||||
// @securityDefinitions.apikey JWT
|
||||
// @in header
|
||||
// @name Authorization
|
||||
// @in header
|
||||
// @name Authorization
|
||||
|
||||
package main
|
||||
|
||||
@@ -46,7 +46,6 @@ import (
|
||||
"easywish/internal/database"
|
||||
"easywish/internal/logger"
|
||||
redisclient "easywish/internal/redisClient"
|
||||
"easywish/internal/routes"
|
||||
"easywish/internal/services"
|
||||
"easywish/internal/validation"
|
||||
|
||||
@@ -74,7 +73,6 @@ func main() {
|
||||
validation.Module,
|
||||
|
||||
controllers.Module,
|
||||
routes.Module,
|
||||
|
||||
fx.Invoke(func(lc fx.Lifecycle, router *gin.Engine, syncLogger *logger.SyncLogger) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user