Link the API in the header

This commit is contained in:
Christoph Reiter
2020-07-11 15:00:56 +02:00
parent 6bb6f45fad
commit bfb2e1dc8f
2 changed files with 4 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ from .fetch import update_loop
app = FastAPI(openapi_url=None)
webapp.mount("/api", api)
webapp.mount("/api", api, name="api")
app.mount("/", webapp)

View File

@@ -26,7 +26,9 @@
</div>
<div class="ml-auto">
<a href="https://www.msys2.org" class="btn btn-sm btn-outline-primary ml-auto">Get MSYS2</a>
<a href="https://github.com/msys2/msys2-web" class="btn btn-sm btn-outline-info">Fork on GitHub</a>
<a href="https://github.com/msys2/msys2-web" class="btn btn-sm
btn-outline-info">Fork on GitHub</a>
<a href="{{ url_for('api', path='/') }}" class="btn btn-sm btn-outline-success">API</a>
</div>
</div>
</nav>