diff --git a/PostmonServer.py b/PostmonServer.py index cee4964..344074e 100644 --- a/PostmonServer.py +++ b/PostmonServer.py @@ -3,7 +3,7 @@ import bottle import json import xmltodict -from bottle import route, run, response +from bottle import route, run, response, template from CepTracker import CepTracker import requests from correios import Correios @@ -175,6 +175,12 @@ def track_pack(provider, track): bottle.mount('/v1', app_v1) +@app_v1.route('/crossdomain.xml') +def crossdomain(): + response.content_type = 'application/xml' + return template('crossdomain') + + def _standalone(port=9876): run(host='0.0.0.0', port=port) diff --git a/views/crossdomain.tpl b/views/crossdomain.tpl new file mode 100644 index 0000000..7dfdb15 --- /dev/null +++ b/views/crossdomain.tpl @@ -0,0 +1,4 @@ + + + +