fix: stream is not deleted actually

This commit is contained in:
倪天华 2024-03-11 21:41:20 +08:00
parent 71445a8a88
commit 7b25eb4d27

View file

@ -345,6 +345,11 @@ func DeleteStream(c *gin.Context) {
return return
} }
if err = os.Remove(availablePath); err != nil {
api.ErrHandler(c, err)
return
}
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"message": "ok", "message": "ok",
}) })