1234567891011121314151617181920 |
- # -*- coding: utf-8 -*-
-
- from flask import Flask
- from flask import request
-
- import Router
-
- app = Flask(__name__)
-
-
- @app.route('/', defaults={'path': ''})
- @app.route('/<path:path>')
- def index(path):
- url_elements = path.split('/')
- url_arguments = request.args
- return "%s <br/> %s" % (url_elements, url_arguments)
-
-
- if __name__ == '__main__':
- app.run()
|