forked from Dan-in-CA/SIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
30 lines (29 loc) · 916 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
#### urls is used by web.py. When a GET request is received, the corresponding class is executed.
urls = [
'/', 'home',
'/cv', 'change_values',
'/vo', 'view_options',
'/co', 'change_options',
'/vs', 'view_stations',
'/cs', 'change_stations',
'/sn(\d+?\Z)', 'get_station', # regular expression, accepts any station number
'/sn(\d+?=\d(&t=\d+?\Z)?)', 'set_station', # regular expression, accepts any digits
'/vr', 'view_runonce',
'/cr', 'change_runonce',
'/vp', 'view_programs',
'/mp', 'modify_program',
'/cp', 'change_program',
'/dp', 'delete_program',
'/vl', 'view_log',
'/cl', 'clear_log',
'/lo', 'log_options',
'/rp', 'run_now',
'/ttu', 'toggle_temp',
'/rev', 'show_revision',
'/wl', 'water_log',
'/api/status', 'api_status',
'/api/log', 'api_log',
'/login', 'login',
'/logout', 'logout'
]