mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-09 02:37:30 -06:00
media handler updates
This commit is contained in:
parent
d797ddf704
commit
17a62d53ed
15 changed files with 237 additions and 55 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue