Ver a proveniência

Fix post handler (#155)

tags/v1.0.0
Lee Burton há 5 anos
committed by Andrea Spacca
ascendente
cometimento
0c94da28ec
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      server/server.go

+ 1
- 1
server/server.go Ver ficheiro

@@ -362,7 +362,7 @@ func (s *Server) Run() {
r.HandleFunc("/put/{filename}", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.HandleFunc("/upload/{filename}", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.HandleFunc("/{filename}", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.HandleFunc("/", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("POST")
r.HandleFunc("/", s.BasicAuthHandler(http.HandlerFunc(s.postHandler))).Methods("POST")
// r.HandleFunc("/{page}", viewHandler).Methods("GET")

r.HandleFunc("/{token}/{filename}/{deletionToken}", s.deleteHandler).Methods("DELETE")


Carregando…
Cancelar
Guardar