File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 99
1010from findthatpostcode import blueprints , commands , db
1111from findthatpostcode .controllers .areatypes import area_types_count
12- from findthatpostcode .limiter import limiter
1312from findthatpostcode .metadata import AREA_TYPES , KEY_AREA_TYPES , OTHER_CODES
1413
1514
@@ -64,7 +63,6 @@ def create_app(test_config=None):
6463
6564 db .init_app (app )
6665 commands .init_app (app )
67- limiter .init_app (app )
6866 CORS (app )
6967
7068 # template helpers
@@ -86,21 +84,18 @@ def expand_commas(s):
8684
8785 # routes and blueprints
8886 @app .route ("/" )
89- @limiter .exempt
9087 def index ():
9188 ats = area_types_count (db .get_db ())
9289 return render_template ("index.html.j2" , result = ats )
9390
9491 @app .route ("/robots.txt" )
95- @limiter .exempt
9692 def robots ():
9793 text = render_template ("robots.txt" )
9894 response = make_response (text )
9995 response .headers ["Content-Type" ] = "text/plain"
10096 return response
10197
10298 @app .route ("/about" )
103- @limiter .exempt
10499 def about ():
105100 return render_template ("about.html.j2" )
106101
You can’t perform that action at this time.
0 commit comments