Fix: Event types with periods cannot be fired using API

This commit is contained in:
Paulus Schoutsen committed 2013-11-09 14:23:50 -08:00
1 parent 94752f663e
commit 2f65751087
2 files changed
+11 -10

No files matched your search

+3 -2
View File
@@ -152,8 +152,9 @@ class RequestHandler(BaseHTTPRequestHandler):
# /events
('GET', '/api/events', '_handle_get_api_events'),
('POST', re.compile(r'/api/events/(?P<event_type>\w+)'),
'_handle_fire_event'),
('POST',
re.compile(r'/api/events/(?P<event_type>[a-zA-Z\._0-9]+)'),
'_handle_fire_event'),
# Statis files
('GET', re.compile(r'/static/(?P<file>[a-zA-Z\._\-0-9\/]+)'),