more APIs on #12
This commit is contained in:
parent
db0026c507
commit
37d8d3afe9
10 changed files with 108 additions and 24 deletions
|
@ -76,3 +76,12 @@ func ApiReqToken() macaron.Handler {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ApiReqBasicAuth() macaron.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !ctx.IsBasicAuth {
|
||||
ctx.Error(403)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue