Skip to content

Commit

Permalink
api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Nov 7, 2024
1 parent 0d6f594 commit 9ed7289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,4 @@ rsync -r data [email protected]:/data/sequence-search
```sh
cd api
uvicorn main:app --reload --port 8086
# or
gunicorn --worker-class uvicorn.workers.UvicornWorker --bind '127.0.0.1:8086' --daemon main:app
```
4 changes: 2 additions & 2 deletions app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ function App() {
function handleSearch() {
setLoading(true);
async function search() {
// const res = await fetch("https://api.sequence.obis.org/search?sequence=" + sequence.trim());
const res = await fetch("http://localhost:8000/search?sequence=" + sequence.trim());
const res = await fetch("https://api.sequence.obis.org/search?sequence=" + sequence.trim());
// const res = await fetch("http://localhost:8000/search?sequence=" + sequence.trim());
const data = await res.json();
setOccurrences(data["results"]);
setTable(data["table"]);
Expand Down

0 comments on commit 9ed7289

Please sign in to comment.