Browse Source

En cours de développement

master
losyme 9 months ago
parent
commit
d42571077d
  1. 4
      go.mod
  2. 8
      go.sum
  3. 2
      internal/api/api.go

4
go.mod

@ -10,9 +10,9 @@ require (
forge.chapril.org/losyme/cmdline v0.0.0-20211010173716-509a4c1f872e
forge.chapril.org/losyme/config v0.0.0-20211025142334-51a8a7a73a4f
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40
forge.chapril.org/losyme/kong v0.0.0-20211028114954-4ce7afb34ca2
forge.chapril.org/losyme/kong v0.0.0-20211028133020-ad21efa4ce35
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c
forge.chapril.org/losyme/minikit v0.0.0-20211028115044-de5ec1d4ffb2
forge.chapril.org/losyme/minikit v0.0.0-20211028133056-64eddd65ca43
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf
forge.chapril.org/losyme/util v0.0.0-20211025142031-fd89d32d86fe
forge.chapril.org/losyme/uuid v0.0.0-20211007082235-8d502169e034

8
go.sum

@ -16,14 +16,14 @@ forge.chapril.org/losyme/crypto v0.0.0-20211003213528-e97d4ebea720 h1:tMwzjPmGvB
forge.chapril.org/losyme/crypto v0.0.0-20211003213528-e97d4ebea720/go.mod h1:zSawWghP8cyqaQNOtKBAWGfAeR93uAyHMqpaXtZJsF8=
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40 h1:EoVVFHoIsWRlecHmXP4kx3ALchz5DAfNwso3gcl/Jbk=
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40/go.mod h1:saYfIRBW9zjiCik+/+5ZaajMEnTPBNI00lF9EnO+2kM=
forge.chapril.org/losyme/kong v0.0.0-20211028114954-4ce7afb34ca2 h1:X4g/61caQCcdyAwmw8UfIaozhcAOW+heiF8UoW5aXFA=
forge.chapril.org/losyme/kong v0.0.0-20211028114954-4ce7afb34ca2/go.mod h1:tRojBb6sLEER84ZiSr0z8QNLTllrFvh/QisI8iLkqZ4=
forge.chapril.org/losyme/kong v0.0.0-20211028133020-ad21efa4ce35 h1:/7AJAu08Ay5RJPP7BEaKTT174Z5N7/dplQVqvzcloQk=
forge.chapril.org/losyme/kong v0.0.0-20211028133020-ad21efa4ce35/go.mod h1:sOhHc+IcV5vGNnygTML5/P7Ftmlsf9UB2oL+HQRpsYw=
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae h1:RdYWXKy+OQNJueb4Qqqo7sL4OY3/TpfUvmoIoH8ua9E=
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae/go.mod h1:wnVjwnCO2vFLLZ1EgFuFws1n8XLluufsGsdozGYSA7c=
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c h1:AsWWDqFMigGp33sHDqGdJVVACiPYcY1ChSmBN7olBrk=
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c/go.mod h1:a3fN8yTjq5S/ramr03hIkutKM/35UsijUgRNKHjjlMU=
forge.chapril.org/losyme/minikit v0.0.0-20211028115044-de5ec1d4ffb2 h1:db6Xpabn4AlzZ6f0iP+slFjydt0DiDbLAKrKKx84rIo=
forge.chapril.org/losyme/minikit v0.0.0-20211028115044-de5ec1d4ffb2/go.mod h1:QAzQKsuHL14H0bpVx9FDCdNIb5JHvjoDEY/j3RZyHJw=
forge.chapril.org/losyme/minikit v0.0.0-20211028133056-64eddd65ca43 h1:CJt8lWy/hFafBscGLfasCYxMIvP2mVWDloBsG1zWB6A=
forge.chapril.org/losyme/minikit v0.0.0-20211028133056-64eddd65ca43/go.mod h1:WxkRJFhlWISbYslyHm6zy3nj+4yq9r657NaOEL5+TqE=
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf h1:5OIlwVBTdvjCXh2JHAh5rq8FgSe1lXuuKDFtO/ZRaRM=
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf/go.mod h1:VNjFKl0Q2vvLDnR9tdNdTIZDLQNlR+gcIGNf2aIYv3o=
forge.chapril.org/losyme/util v0.0.0-20211025142031-fd89d32d86fe h1:xjMUKHxtG8jz57JyOxgNLlRaPLJeQvMV9K3HNlhKDB8=

2
internal/api/api.go

@ -48,7 +48,9 @@ func Setup(cs *components.Components) error {
return err
}
cs.Router.MethodNotAllowed = json.MethodNotAllowed(api.logger)
cs.Router.NotFound = json.NotFound(api.logger)
cs.Router.OnRecover = json.OnRecover(api.logger)
cs.Router.Use(
middleware.RequestID(),

Loading…
Cancel
Save