feature (search): search as a plugin

This commit is contained in:
Mickael Kerjean
2022-01-13 03:07:25 +11:00
parent cad6fe3420
commit a91df1637d
17 changed files with 729 additions and 522 deletions

View File

@ -86,7 +86,7 @@ func AdminBackend(ctx App, res http.ResponseWriter, req *http.Request) {
}
func AdminAuthenticationMiddleware(ctx App, res http.ResponseWriter, req *http.Request) {
drivers := Hooks.All.AuthenticationMiddleware()
drivers := Hooks.Get.AuthenticationMiddleware()
middlewares := make(map[string]Form, len(drivers))
for id, driver := range drivers {
middlewares[id] = driver.Setup()