bf296373bd
modified: go.sum new file: internal/config/oauth.go new file: internal/handler/auth.go new file: internal/utils/errors.go new file: internal/utils/json.go modified: internal/utils/password.go Add utils, add auth handler, auth configs
30 lines
790 B
Modula-2
30 lines
790 B
Modula-2
module serv_golang_rest_api
|
|
|
|
go 1.25.1
|
|
|
|
require (
|
|
gorm.io/driver/postgres v1.6.0
|
|
gorm.io/gorm v1.31.0
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go/compute/metadata v0.3.0 // indirect
|
|
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
|
|
golang.org/x/oauth2 v0.31.0 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/go-chi/chi/v5 v5.2.3
|
|
github.com/go-chi/cors v1.2.2
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/pgx/v5 v5.6.0 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/jinzhu/now v1.1.5 // indirect
|
|
golang.org/x/crypto v0.42.0
|
|
golang.org/x/sync v0.17.0 // indirect
|
|
golang.org/x/text v0.29.0 // indirect
|
|
)
|