media handler updates

This commit is contained in:
tsmethurst 2021-05-10 16:27:22 +02:00
commit 17a62d53ed
15 changed files with 237 additions and 55 deletions

View file

@ -58,6 +58,7 @@ func New(config *config.Config, processor message.Processor, log *logrus.Logger)
func (m *Module) Route(s router.Router) error {
s.AttachHandler(http.MethodPost, BasePath, m.MediaCreatePOSTHandler)
s.AttachHandler(http.MethodGet, BasePathWithID, m.MediaGETHandler)
s.AttachHandler(http.MethodPut, BasePathWithID, m.MediaPUTHandler)
return nil
}