mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
more APIs on #12
This commit is contained in:
@ -76,3 +76,12 @@ func ApiReqToken() macaron.Handler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ApiReqBasicAuth() macaron.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !ctx.IsBasicAuth {
|
||||
ctx.Error(403)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user