Workout With Friends Stay fit with a little motivation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Properties
routes.py
Go to the documentation of this file.
1 ##
2 #
3 # Route configuration.
4 #
5
6 def includeme(config):
7 config.add_route('home', '/')
8 config.add_route('user.login', '/login')
9 config.add_route('user.logout', '/logout')
10 config.add_route('user.register', '/register')
11 config.add_route('user.notifications.unconfirmed', '/notifications')
12 config.add_route('user.notifications.all', '/notifications/all')
13 config.add_route('user.view.challenges', '/user/{id:\d+}')
14 config.add_route('user.view.buddies', '/user/{id:\d+}/buddies')
15 config.add_route('user.invite', '/invite')
16 config.add_route('challenge.create', '/challenge/create')
17 config.add_route('challenge.create.speed', '/challenge/create/speed')
18 config.add_route('challenge.create.endurance', '/challenge/create/endurance')
19 config.add_route('challenge.create.bench', '/challenge/create/bench')
20 config.add_route('challenge.create.squat', '/challenge/create/squat')
21 config.add_route('challenge.view', '/challenge/{id:\d+}')
22 config.add_route('search.users', '/search')
23 config.add_route('account.profile', '/account')
24 config.add_route('account.password', '/account/password')
25 config.add_route('account.password.request', '/account/password/reset')
26 config.add_route('account.password.reset', '/account/password/reset/{token}')
27 config.add_rewrite_rule('/favicon.ico', '/static/favicon.ico')
28 config.add_rewrite_rule('/robots.txt', '/static/robots.txt')
29 config.add_rewrite_rule('/sitemap.xml', '/static/sitemap.xml')
30 config.add_rewrite_rule('/dublin.rdf', '/static/dublin.rdf')
31