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

Pridane routy pro archiv a nahravani

parent ce61e939
No related branches found
No related tags found
No related merge requests found
......@@ -69,12 +69,14 @@ sub startup {
$r->get('/')->to(cb => sub { shift->render('live'); });
$r->get('/streams')->to(cb => sub { shift->render('streams'); });
$r->get('/api/streams')->to('Stream#list');
$r->get('/streams/:id')->to('Stream#info');
$r->put('/streams/:id/recording')->to('Stream#recording');
$r->get('/archive')->to(cb => sub { shift->render('archive'); });
$r->get('/api/records')->to('Record#list');
$r->get('/archive/:id')->to('Record#player');
# $r->get('/streams/add')->over( is => 'administrator' )->to('Stream#add');
# $r->get('/streams/:id/form')->over( is => 'administrator' )->to('Stream#form');
# $r->post('/streams')->over( is => 'administrator' )->to('Stream#create');
......@@ -84,7 +86,9 @@ sub startup {
$r->get('/oauth2')->to('OAuth2#callback');
$r->get('/logout')->to('OAuth2#do_logout');
$r->post('/callback/rtmp')->to('Nginx#callback_rtmp');
$r->post('/callback/recorder')->to('Nginx#callback_recorder');
$r->get('/callback/hls')->to('Nginx#callback_hls');
$r->get('/callback/record')->to('Nginx#callback_record');
$r->get('/play/:key')->to('Stream#player');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment