Browse Source

En cours de développement

master
losyme 9 months ago
parent
commit
7066e5f0cf
  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-20211028090253-c20dc80c79ab
forge.chapril.org/losyme/kong v0.0.0-20211028114954-4ce7afb34ca2
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c
forge.chapril.org/losyme/minikit v0.0.0-20211028090906-1e2526234f6e
forge.chapril.org/losyme/minikit v0.0.0-20211028115044-de5ec1d4ffb2
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-20211028090253-c20dc80c79ab h1:FTbf944xZIVDruDHZxkABDTzzOpOpqsm6f+gYYLSB4s=
forge.chapril.org/losyme/kong v0.0.0-20211028090253-c20dc80c79ab/go.mod h1:tRojBb6sLEER84ZiSr0z8QNLTllrFvh/QisI8iLkqZ4=
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/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-20211028090906-1e2526234f6e h1:vQXG7yc0Awi5a1NDHEy5YYmhtFCiG3L778h4DuU/tDs=
forge.chapril.org/losyme/minikit v0.0.0-20211028090906-1e2526234f6e/go.mod h1:pn7rDP/l8BgjoKjDFmJX/Ti/3Eqvp2QsPFcXkqMd1Yo=
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/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,6 +48,8 @@ func Setup(cs *components.Components) error {
return err
}
cs.Router.NotFound = json.NotFound(api.logger)
cs.Router.Use(
middleware.RequestID(),
middleware.Logger(api.logger),

Loading…
Cancel
Save