cowiz20/app_instance.py

11 lines
250 B
Python
Raw Normal View History

2020-04-05 16:00:48 +02:00
import responder
# CORS wasn't demoed in the course, but is required to be used from
# external apps like movie exploder.
cors_params = {
'allow_origins': '*',
'allow_methods': '*',
}
api = responder.API(cors=True, cors_params=cors_params)