Skip to content

Commit

Permalink
Fix axe scan in example app (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenyu authored Aug 14, 2024
1 parent 7a9b157 commit 8e42ad7
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN pip3 install --no-cache-dir -r requirements.txt
COPY db-migrate /usr/bin/
COPY migrations.sql /app/
COPY *.py /app/
COPY /templates /app/templates

# Set the host to 0.0.0.0 to make the server available external
# to the Docker container that it's running in.
Expand Down
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import datetime

import click
from flask import Flask
from flask import Flask, render_template

import storage
from db import get_db_connection
Expand All @@ -25,7 +25,7 @@ def main():

@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
return render_template("index.html")


@app.route("/health")
Expand Down
10 changes: 10 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html lang="en">
<head>
<title>Hello, world</title>
</head>
<body>
<main>
<h1>Hello, world</h1>
</main>
</body>
</html>
69 changes: 67 additions & 2 deletions e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e42ad7

Please sign in to comment.