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-web
|
||||
cpanfile
|
||||
lib/Peertube/DL.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/UserAgent.pm
|
||||
lib/Peertube/DL/Utils.pm
|
||||
LICENSE
|
||||
Makefile.PL
|
||||
MANIFEST This list of files
|
||||
public/css/index.css
|
||||
public/index.html
|
||||
public/js/peertube-dl-web.js
|
||||
README.md
|
||||
t/00-use_ok.t
|
||||
t/downloaders/animeflv_example_response.html
|
||||
|
@ -1,6 +1,13 @@
|
||||
#!/usr/bin/env perl
|
||||
use Mojolicious::Lite -signatures;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use feature 'say';
|
||||
|
||||
use Peertube::DL::URLHandler;
|
||||
use Peertube::DL;
|
||||
|
||||
get '/' => sub {
|
||||
my $c = shift;
|
||||
@ -31,7 +38,7 @@ post '/proxy_to_get' => sub {
|
||||
);
|
||||
};
|
||||
|
||||
push @{ app->renderer->paths }, ('./templates');
|
||||
push @{ app->static->paths }, ('./public');
|
||||
push @{ app->renderer->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/templates' );
|
||||
push @{ app->static->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/public' );
|
||||
app->start;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user