mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-28 19:55:20 +08:00
combined search css/js/templates are other files into a single structure
This commit is contained in:
28
api/__init__.py
Normal file
28
api/__init__.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Onename API
|
||||
Copyright 2014 Halfmoon Labs, Inc.
|
||||
~~~~~
|
||||
"""
|
||||
|
||||
from flask import Flask, Blueprint
|
||||
from flask_https import RequireHTTPS
|
||||
from flask_sslify import SSLify
|
||||
|
||||
# Create app
|
||||
app = Flask(__name__)
|
||||
|
||||
app.config.from_object('api.settings')
|
||||
|
||||
if not (app.config.get('DEBUG')):
|
||||
SSLify(app)
|
||||
|
||||
# Add in blueprints
|
||||
from .auth import v1auth
|
||||
|
||||
blueprints = [v1auth]
|
||||
|
||||
for blueprint in blueprints:
|
||||
app.register_blueprint(blueprint)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user