mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: stream is not deleted actually
This commit is contained in:
parent
71445a8a88
commit
7b25eb4d27
1 changed files with 5 additions and 0 deletions
|
@ -345,6 +345,11 @@ func DeleteStream(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if err = os.Remove(availablePath); err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"message": "ok",
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue