11 lines
348 B
Python
11 lines
348 B
Python
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')
|
|
])
|
|
])
|