awips2/pythonPackages/werkzeug/examples/i18nurls/urls.py
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

11 lines
348 B
Python
Executable file

from werkzeug.routing import Map, Rule, Submount
map = Map([
Rule('/', endpoint='#language_select'),
Submount('/<string(length=2):lang_code>', [
Rule('/', endpoint='index'),
Rule('/about', endpoint='about'),
Rule('/blog/', endpoint='blog/index'),
Rule('/blog/<int:post_id>', endpoint='blog/show')
])
])