Add Meilisearch indexer (#444)
هذا الالتزام موجود في:
@@ -171,7 +171,7 @@ func (s *Server) setFuncMap() {
|
||||
|
||||
return strings.TrimSpace(resultBuilder.String())
|
||||
},
|
||||
"indexEnabled": index.Enabled,
|
||||
"indexEnabled": index.IndexEnabled,
|
||||
"isUrl": func(s string) bool {
|
||||
_, err := url.ParseRequestURI(s)
|
||||
return err == nil
|
||||
|
||||
@@ -98,7 +98,7 @@ func (s *Server) registerRoutes() {
|
||||
|
||||
r.GET("/all", gist.AllGists, checkRequireLogin, setAllGistsMode("all"))
|
||||
|
||||
if index.Enabled() {
|
||||
if index.IndexEnabled() {
|
||||
r.GET("/search", gist.Search, checkRequireLogin)
|
||||
} else {
|
||||
r.GET("/search", gist.AllGists, checkRequireLogin, setAllGistsMode("search"))
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم