#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import falcon | |
import yaml | |
from resources.root import RootResource | |
with open('./config.yaml', 'r') as stream: | |
config = yaml.safe_load(stream) | |
app = falcon.App( | |
middleware=[], | |
cors_enable=True, | |
) | |
app.add_route('/', RootResource()) | |