mirror of https://github.com/gogs/gogs.git
routes/api/srcgraph: remove option field
parent
e2629d7ea6
commit
e688457820
|
@ -19,10 +19,9 @@ import (
|
||||||
|
|
||||||
func NewHandler() http.HandlerFunc {
|
func NewHandler() http.HandlerFunc {
|
||||||
h := adapter.NewHandler(externalService{}, adapter.Options{
|
h := adapter.NewHandler(externalService{}, adapter.Options{
|
||||||
URL: setting.AppURL,
|
URL: setting.AppURL,
|
||||||
PathPrefix: "/-/srcgraph",
|
PathPrefix: "/-/srcgraph",
|
||||||
MaxPageLen: 100000, // Current version returns all repositories at once, does not matter
|
MaxPageLen: 100000, // Current version returns all repositories at once, does not matter
|
||||||
TokenAsUsername: true,
|
|
||||||
})
|
})
|
||||||
return h.ServeHTTP
|
return h.ServeHTTP
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue