Skip to content

Commit

Permalink
Merge pull request #21 from ittia-research/dev
Browse files Browse the repository at this point in the history
fix /doc typo
  • Loading branch information
etwk authored Sep 3, 2024
2 parents c11d941 + 47c3080 commit bc51508
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ Fact-checking tools to combat disinformation.
## Get Started
Fact-check:
- Online demo: `https://check.ittia.net`
- API docs: `https://check.ittia.net/doc`
- API docs: `https://check.ittia.net/docs`

Search backend:
- Using self-hosted search backend for better optimization.
- API doc: `https://search.ittia.net/doc`
- Using `search.ittia.net` for better optimization.
- API doc: `https://search.ittia.net/docs`
- Features:
- Use first-class search engine, Google at this moment.
- Customize count of sources.
- Supports search session: streaming, resume.
- Customizable source count.
- Supports search sessions: streaming, resuming.
- Utilizes state-of-the-art search engine (currently Google).

## Design
Input something.
Expand Down
5 changes: 5 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ async def stream_response(path):
async def startup_event():
pass

"""Redirect /doc to /docs"""
@app.get("/doc", include_in_schema=False)
async def _doc_redirect():
return RedirectResponse(url="/docs")

@app.get("/health")
async def health():
return {"status": "ok"}
Expand Down

0 comments on commit bc51508

Please sign in to comment.