Open
Description
Hi,... had a problem where the 'apisearch' route conflicts with the 'search' route from devpi_web.
My browser sends an Accept header that includes '/', and the /+search route from semantic ui matches that before the /+search route from devpi_web.
workaround is to use a header predicate instead of an accept predicate in this package:
i.e.: replace in devpi_semantic_ui/init.py:17
config.add_route('searchapi', '/+search', accept='application/json')
with:
config.add_route('searchapi', '/+search', header='Accept:application/json')
It would be better if there was a way to control include order form within devpi-server, but I was not able to find an easy way.
cheers
Metadata
Metadata
Assignees
Labels
No labels