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:
parent
cbbff3d845
commit
3eef282ce6
@ -10,7 +10,7 @@ if(!is_dir($f3->get('UPLOADS'))) {
|
|||||||
$f3->route('GET /',
|
$f3->route('GET /',
|
||||||
function($f3) {
|
function($f3) {
|
||||||
$f3->set('key', $f3->get('PARAMS.key'));
|
$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',
|
$f3->route('POST /upload',
|
||||||
@ -46,7 +46,7 @@ $f3->route('POST /upload',
|
|||||||
$f3->route('GET /@key',
|
$f3->route('GET /@key',
|
||||||
function($f3) {
|
function($f3) {
|
||||||
$f3->set('key', $f3->get('PARAMS.key'));
|
$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',
|
$f3->route('POST /image2svg',
|
3
public/index.php
Normal file
3
public/index.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once(__DIR__.'/../app.php');
|
@ -161,7 +161,7 @@ loadingTask.promise.then(function(pdf) {
|
|||||||
canvasEdition.add(textSignature).renderAll();
|
canvasEdition.add(textSignature).renderAll();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
canvasEditions.push(canvasEdition);
|
canvasEditions.push(canvasEdition);
|
||||||
|
|
||||||
var renderContext = {
|
var renderContext = {
|
Loading…
x
Reference in New Issue
Block a user