Add more things for file handling
This commit is contained in:
parent
c813c4784a
commit
1fcf47bffc
14 changed files with 284 additions and 59 deletions
|
@ -37,6 +37,9 @@ func New(addr string) *Server {
|
|||
handler.HandleFunc("GET /replies-to/{id}", inReplyTo)
|
||||
handler.HandleFunc("POST /fetch", requestAs)
|
||||
handler.HandleFunc("POST /follow", requestFollow)
|
||||
handler.HandleFunc("POST /upload-file", uploadMedia)
|
||||
handler.HandleFunc("/force-media-sync", forceMediaSync)
|
||||
handler.HandleFunc("GET /files-owned-by", getOwnedFiles)
|
||||
web := http.Server{
|
||||
Addr: addr,
|
||||
Handler: webutils.ChainMiddlewares(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue