# -*- 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)

# Import views
import index
import api_v1
