todo
This commit is contained in:
@@ -106,6 +106,8 @@ func (server *Server) apiV0MediaIDHandler(w http.ResponseWriter, r *http.Request
|
||||
switch r.Method {
|
||||
case http.MethodGet:
|
||||
return server.apiV0MediaIDGetHandler(w, r)
|
||||
case http.MethodPut:
|
||||
return server.apiV0MediaIDPutHandler(w, r)
|
||||
case http.MethodDelete:
|
||||
return server.apiV0MediaIDDelHandler(w, r)
|
||||
}
|
||||
@@ -113,6 +115,10 @@ func (server *Server) apiV0MediaIDHandler(w http.ResponseWriter, r *http.Request
|
||||
return nil
|
||||
}
|
||||
|
||||
func (server *Server) apiV0MediaIDPutHandler(w http.ResponseWriter, r *http.Request) error {
|
||||
panic("not impl")
|
||||
}
|
||||
|
||||
func (server *Server) apiV0MediaIDDelHandler(w http.ResponseWriter, r *http.Request) error {
|
||||
id := path.Base(r.URL.Path)
|
||||
os.Remove(server.diskMediaPath(id))
|
||||
|
||||
Reference in New Issue
Block a user