mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
secret code middleware for migration
This commit is contained in:
@@ -16,7 +16,7 @@ func NewApiController(as *services.ApiService, s *gin.RouterGroup) *ApiControlle
|
||||
ac.ApiService = as
|
||||
|
||||
s.GET("", ac.getFirst)
|
||||
s.POST("migrate", middleware.Auth, ac.postMigrate)
|
||||
s.POST("migrate", middleware.SecretCode, ac.postMigrate)
|
||||
|
||||
return ac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user