Making the webpage system installed also.

This commit is contained in:
sergiotarxz 2020-12-29 07:27:16 +01:00
parent 76358a8667
commit 0daf7184e1
Signed by untrusted user who does not match committer: sergiotarxz
GPG Key ID: E5903508B6510AC2
5 changed files with 13 additions and 5 deletions

View File

@ -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

View File

@ -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;