fix wildcard
This commit is contained in:
4
admin.go
4
admin.go
@@ -70,8 +70,8 @@ func (a *AdminConfig) Run() {
|
||||
r.GET("/app/deactivate/:app", ApiAppDeactivate)
|
||||
|
||||
r.GET("/app/:app/source/list", ApiAppSourceList)
|
||||
r.GET("/app/:app/source/add/:src", ApiAppSourceAdd)
|
||||
r.GET("/app/:app/source/del/:src", ApiAppSourceDel)
|
||||
r.GET("/app/:app/source/add/*src", ApiAppSourceAdd)
|
||||
r.GET("/app/:app/source/del/*src", ApiAppSourceDel)
|
||||
|
||||
srv := &http.Server{
|
||||
Addr: a.Addr,
|
||||
|
||||
Reference in New Issue
Block a user