This commit is contained in:
2019-02-18 15:48:30 +01:00
parent 1d015448cd
commit c121381775
6 changed files with 34 additions and 40 deletions

View File

@ -18,7 +18,7 @@ $post = function () {
return file_get_contents("../html/post.html");
};
$router->addRoute("/^\/post\/" + $postCharacters + "+\/*$/", $post); // route "/post/*"
$router->addRoute("/^\/post\/" . $postCharacters . "+\/*$/", $post); // route "/post/*"
//page de recherche
$search = function () {
@ -31,4 +31,4 @@ $post = function() {
var_dump("tst");
};
$router->addRoute("/^\/post\/" + $postCharacters + "+\/edit\/*$/", $post);
$router->addRoute("/^\/post\/" . $postCharacters . "+\/edit\/*$/", $post);