Skip to content

Commit

Permalink
Merge pull request #14 from NBISweden/feat/13-add-http-response-compr…
Browse files Browse the repository at this point in the history
…ession

feat: add http response compression
  • Loading branch information
kusalananda authored May 7, 2024
2 parents 3674c8c + 93c6db6 commit 8b8766b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import frontmatter
import markdown
from markdown.extensions.toc import TocExtension
from flask_compress import Compress


logger = logging.getLogger(__name__)
Expand All @@ -23,6 +24,7 @@
static_folder="static"
)
app.secret_key = "myverysecretkey"
Compress(app)


@app.route('/')
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ openpyxl==3.1.2
pandas==2.2.2
python-frontmatter==1.1.0
gunicorn==21.2.0
flask-compress==1.15

0 comments on commit 8b8766b

Please sign in to comment.