mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Workers can now search in multiple specified db-s
This commit is contained in:
parent
68dcbff846
commit
19b8fdc5ab
5 changed files with 57 additions and 52 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
url=$(head -n 1 ../serverAddress)
|
||||
# url='https://api.frylabs.net'
|
||||
echo "Server url: $url"
|
||||
|
||||
simpleType='\{"type":"simple"\}'
|
||||
|
@ -45,7 +46,7 @@ fi
|
|||
|
||||
echo "Result:"
|
||||
../bin/hr.sh
|
||||
res=$(curl -H "Content-Type: application/json" -L -s -X GET "${url}/ask?q=${q}&data=${data}&subj=${subj}")
|
||||
res=$(curl --cookie "sessionID=e0ac328d-86cc-4dbf-a00b-213bec6011e7" -H "Content-Type: application/json" -L -s -X GET "${url}/ask?q=${q}&data=${data}&subj=${subj}")
|
||||
echo "$res" | jq
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "jq error"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue