forked from thisisparker/public_domains
-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.py
30 lines (22 loc) · 880 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Import dependencies
from flask import Flask
from cache import cache
# Import blueprints
from blueprints.humans import humans_blueprint
from blueprints.index import index_blueprint
from blueprints.favicon import favicon_blueprint
from blueprints.check_domain_availability import check_domain_availability_blueprint
from blueprints.generate_domain_names import generate_domain_names_blueprint
from blueprints.search_gutenberg import search_gutenberg_blueprint
# Set up main app
app = Flask(__name__)
cache.init_app(app)
# Register endpoints
app.register_blueprint(index_blueprint)
app.register_blueprint(search_gutenberg_blueprint)
app.register_blueprint(generate_domain_names_blueprint)
app.register_blueprint(check_domain_availability_blueprint)
app.register_blueprint(favicon_blueprint)
app.register_blueprint(humans_blueprint)
if __name__ == '__main__':
app.run()