Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the root URL do something useful #22

Closed
MatMoore opened this issue Mar 17, 2020 · 2 comments
Closed

Make the root URL do something useful #22

MatMoore opened this issue Mar 17, 2020 · 2 comments

Comments

@MatMoore
Copy link
Collaborator

Split from #20

Currently, the root URL (i.e. http://localhost:8000/) returns a 404 which is probably going to be confusing.

Can we redirect that to the docs, or put in an HTML landing page?

fastapi/fastapi#199 has an example of how to do redirects in FastAPI

For a landing page I think we can follow https://fastapi.tiangolo.com/tutorial/static-files/

Some ideas for things we could put on a landing page:

@shiv-io
Copy link
Contributor

shiv-io commented Mar 22, 2020

Just created a pull request: #23

@andreagrandi
Copy link
Owner

Just created a pull request: #23

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants