Fix: Event types with periods cannot be fired using API
This commit is contained in:
1 parent
94752f663e
commit
2f65751087
2 files changed
+11
-10
No files matched your search
@@ -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\/]+)'),
|
||||
|
||||
Reference in new issue
Block a user