barbican/barbican_api.py
Jarret Raim aa6cb5932c Adding SQLAlchemy persistence
Basic structure for SQLAlchemy and models. Uses a hardcoded DB location which should be moved to a standard configuration.
2013-02-16 19:10:11 -06:00

22 lines
439 B
Python

# -*- coding: utf-8 -*-
"""
Barbican API
~~~~~~~~~~~~
The API for Barbican.
DO NOT USE THIS IN PRODUCTION. IT IS NOT SECURE IN ANY WAY.
YOU HAVE BEEN WARNED.
:copyright: (c) 2013 by Jarret Raim
:license: Apache 2.0, see LICENSE for details
"""
import json
from flask import Blueprint
api = Blueprint('api', __name__, url_prefix="/api")
@api.route('/')
def root():
return json.dumps({'hello': 'world'})