forked from External/mediamtx
this involves /v2/config/paths/edit and /v2/config/paths/remove
This commit is contained in:
parent
22b120ef22
commit
f7a30e7b38
2 changed files with 5 additions and 1 deletions
|
|
@ -605,6 +605,8 @@ paths:
|
||||||
description: the request was successful.
|
description: the request was successful.
|
||||||
'400':
|
'400':
|
||||||
description: invalid request.
|
description: invalid request.
|
||||||
|
'404':
|
||||||
|
description: configuration not found.
|
||||||
'500':
|
'500':
|
||||||
description: internal server error.
|
description: internal server error.
|
||||||
|
|
||||||
|
|
@ -625,6 +627,8 @@ paths:
|
||||||
description: the request was successful.
|
description: the request was successful.
|
||||||
'400':
|
'400':
|
||||||
description: invalid request.
|
description: invalid request.
|
||||||
|
'404':
|
||||||
|
description: configuration not found.
|
||||||
'500':
|
'500':
|
||||||
description: internal server error.
|
description: internal server error.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -409,7 +409,7 @@ func (a *api) onConfigPathsEdit(ctx *gin.Context) {
|
||||||
|
|
||||||
newConfPath, ok := newConf.Paths[name]
|
newConfPath, ok := newConf.Paths[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
ctx.AbortWithStatus(http.StatusBadRequest)
|
ctx.AbortWithStatus(http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue