mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Remove search feature flag
This commit is contained in:
@ -34,7 +34,6 @@ case class Config(
|
||||
integrationEndpoint: Config.IntegrationEndpoint,
|
||||
maxItemPageSize: Int,
|
||||
maxNoteLength: Int,
|
||||
featureSearch2: Boolean,
|
||||
fullTextSearch: Config.FullTextSearch,
|
||||
adminEndpoint: Config.AdminEndpoint,
|
||||
openid: List[OpenIdConfig],
|
||||
|
@ -40,8 +40,6 @@ final class ItemSearchPart[F[_]: Async](
|
||||
private[this] val logger = docspell.logging.getLogger[F]
|
||||
|
||||
def routes: HttpRoutes[F] =
|
||||
if (!cfg.featureSearch2) HttpRoutes.empty
|
||||
else
|
||||
HttpRoutes.of {
|
||||
case GET -> Root / `searchPath` :? QP.Query(q) :? QP.Limit(limit) :?
|
||||
QP.Offset(offset) :? QP.WithDetails(detailFlag) :?
|
||||
|
Reference in New Issue
Block a user