Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Sep 1, 2023
1 parent 96d4151 commit bf959dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ async def reverse_proxy(request: Request) -> Response:
# Register reverse proxy route
app.add_route("/proxy/{path:path}", reverse_proxy, methods=["GET", "POST"])


# Register route for favicon.
@app.get("/favicon.ico")
async def favicon():
return FileResponse(pathlib.Path(__file__).parent.parent.parent / "frontend/public/favicon.ico")

Check warning on line 88 in backend/app/main.py

View check run for this annotation

Codecov / codecov/patch

backend/app/main.py#L88

Added line #L88 was not covered by tests


# Routes
if SERVE_FRONTEND: # pragma: no cover
print(f"SERVE_FRONTEND = {SERVE_FRONTEND}", file=sys.stderr)
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const router = createRouter({
const DEFAULT_TITLE = 'REEV Explains and Evaluates Variants'

router.afterEach((to, _from) => {

Check warning on line 44 in frontend/src/router/index.ts

View workflow job for this annotation

GitHub Actions / Frontend-Lint

'_from' is defined but never used
// Use next tick to handle router history correctly
// see: https://github.com/vuejs/vue-router/issues/914#issuecomment-384477609
nextTick(() => {
document.title = to.meta.title as string ?? DEFAULT_TITLE
})
});
// Use next tick to handle router history correctly
// see: https://github.com/vuejs/vue-router/issues/914#issuecomment-384477609
nextTick(() => {

Check warning on line 47 in frontend/src/router/index.ts

View check run for this annotation

Codecov / codecov/patch

frontend/src/router/index.ts#L47

Added line #L47 was not covered by tests
document.title = (to.meta.title as string) ?? DEFAULT_TITLE
})
})

export { routes }

Expand Down

0 comments on commit bf959dd

Please sign in to comment.