mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
32 lines
552 B
Python
32 lines
552 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Onename API
|
|
Copyright 2014 Halfmoon Labs, Inc.
|
|
~~~~~
|
|
"""
|
|
|
|
from flask import Flask, Blueprint
|
|
|
|
# Create app
|
|
app = Flask(__name__)
|
|
|
|
app.config.from_object('api.settings')
|
|
|
|
# Import functions
|
|
import errors, decorators, views
|
|
|
|
# Add in blueprints
|
|
from .docs import docs
|
|
from .auth import v1auth
|
|
from .profile import v1profile
|
|
from .proofs import v1proofs
|
|
from .search import v1search
|
|
|
|
blueprints = [
|
|
docs,
|
|
v1auth, v1profile, v1proofs, v1search
|
|
]
|
|
|
|
for blueprint in blueprints:
|
|
app.register_blueprint(blueprint)
|