Skip to content
Snippets Groups Projects
Verified Commit 95d03917 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Pridane routy pro websockety

parent 241db43c
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,8 @@ sub startup {
my $r = $self->routes;
$r->get('/')->to(cb => sub { shift->redirect_to('/api.html');});
$r->websocket('/ws/posts')->to('Posts#ws');
$r->websocket('/ws/announcements')->to('Announcements#ws');
}
1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment