forked from sergiotarxz/Peertube-dl
Making the webpage system installed also.
This commit is contained in:
parent
76358a8667
commit
0daf7184e1
7
MANIFEST
7
MANIFEST
@ -3,16 +3,17 @@ AUTHORS
|
|||||||
bin/peertube-dl
|
bin/peertube-dl
|
||||||
bin/peertube-dl-web
|
bin/peertube-dl-web
|
||||||
cpanfile
|
cpanfile
|
||||||
|
lib/Peertube/DL.pm
|
||||||
lib/Peertube/DL/Downloaders.pm
|
lib/Peertube/DL/Downloaders.pm
|
||||||
|
lib/Peertube/DL/public/css/index.css
|
||||||
|
lib/Peertube/DL/public/index.html
|
||||||
|
lib/Peertube/DL/public/js/peertube-dl-web.js
|
||||||
lib/Peertube/DL/URLHandler.pm
|
lib/Peertube/DL/URLHandler.pm
|
||||||
lib/Peertube/DL/UserAgent.pm
|
lib/Peertube/DL/UserAgent.pm
|
||||||
lib/Peertube/DL/Utils.pm
|
lib/Peertube/DL/Utils.pm
|
||||||
LICENSE
|
LICENSE
|
||||||
Makefile.PL
|
Makefile.PL
|
||||||
MANIFEST This list of files
|
MANIFEST This list of files
|
||||||
public/css/index.css
|
|
||||||
public/index.html
|
|
||||||
public/js/peertube-dl-web.js
|
|
||||||
README.md
|
README.md
|
||||||
t/00-use_ok.t
|
t/00-use_ok.t
|
||||||
t/downloaders/animeflv_example_response.html
|
t/downloaders/animeflv_example_response.html
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use Mojolicious::Lite -signatures;
|
use Mojolicious::Lite -signatures;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
use feature 'say';
|
||||||
|
|
||||||
use Peertube::DL::URLHandler;
|
use Peertube::DL::URLHandler;
|
||||||
|
use Peertube::DL;
|
||||||
|
|
||||||
get '/' => sub {
|
get '/' => sub {
|
||||||
my $c = shift;
|
my $c = shift;
|
||||||
@ -31,7 +38,7 @@ post '/proxy_to_get' => sub {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
push @{ app->renderer->paths }, ('./templates');
|
push @{ app->renderer->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/templates' );
|
||||||
push @{ app->static->paths }, ('./public');
|
push @{ app->static->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/public' );
|
||||||
app->start;
|
app->start;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user