File size: 291 Bytes
5fe2042
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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())