mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-10 07:03:12 -05:00
We’re now serving assets from S3 when running on PaaS. So we’ll set the appropriate caching headers there or in Cloudfront. This means that the app no longer needs to serve cache headers, which is what we were using WhiteNoise for. This commits removes WhiteNoise in favour of letting Flask handle the serving of static assets.
7 lines
104 B
Python
7 lines
104 B
Python
from flask import Flask
|
|
from app import create_app
|
|
|
|
application = Flask('app')
|
|
|
|
create_app(application)
|