add
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"common/db"
|
||||
"common/logger"
|
||||
"common/utils"
|
||||
"common/httpx"
|
||||
"user/internal/handler"
|
||||
"user/internal/repository"
|
||||
"user/internal/router"
|
||||
@@ -64,7 +65,8 @@ func routes() http.Handler {
|
||||
repo := repository.New(pg)
|
||||
svc := service.New(repo)
|
||||
h := handler.New(svc)
|
||||
return router.New(h)
|
||||
cors := httpx.CORS()
|
||||
return cors(router.New(h))
|
||||
}
|
||||
|
||||
func applySchema(path string) error {
|
||||
|
||||
Reference in New Issue
Block a user