1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

Dossier public pour cloisonner l'accès aux pdf du dossier exposé

This commit is contained in:
Vincent LAURENT 2021-09-21 23:01:32 +02:00
parent cbbff3d845
commit 3eef282ce6
5 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,7 @@ if(!is_dir($f3->get('UPLOADS'))) {
$f3->route('GET /',
function($f3) {
$f3->set('key', $f3->get('PARAMS.key'));
echo View::instance()->render('index.html.php');
echo View::instance()->render('../index.html.php');
}
);
$f3->route('POST /upload',
@ -46,7 +46,7 @@ $f3->route('POST /upload',
$f3->route('GET /@key',
function($f3) {
$f3->set('key', $f3->get('PARAMS.key'));
echo View::instance()->render('pdf.html.php');
echo View::instance()->render('../pdf.html.php');
}
);
$f3->route('POST /image2svg',

3
public/index.php Normal file
View File

@ -0,0 +1,3 @@
<?php
require_once(__DIR__.'/../app.php');

View File

@ -161,7 +161,7 @@ loadingTask.promise.then(function(pdf) {
canvasEdition.add(textSignature).renderAll();
}
});
canvasEditions.push(canvasEdition);
var renderContext = {