1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-26 22:45:38 +03:00

routing: if a query contatins space or / it is a question

This commit is contained in:
Igor Chubin 2019-05-11 12:45:00 +02:00
parent b1b8e772ac
commit 08de8f252b

View File

@ -121,9 +121,10 @@ _CONFIG = {
("", "learnxiny"),
],
"routing.post": [
("^[^/]*$", "unknown"),
("^[^/ +]*$", "unknown"),
("^[a-z][a-z]-[a-z][a-z]$", "translation"),
],
"routing.default": "question",
"upstream.url": "https://cheat.sh",
"upstream.timeout": 5,
"search.limit": 20,