changements faits

This commit is contained in:
2019-03-02 00:49:48 +01:00
parent 91806d4112
commit cb6f9a967b
15 changed files with 349 additions and 327 deletions

View File

@ -2,7 +2,9 @@
namespace App\Controller;
class HomeController extends \App\Controller {
use App\Controller;
class HomeController extends Controller {
/**
@ -13,12 +15,30 @@ class HomeController extends \App\Controller {
}
/**
* @route /^\/post\/[a-z0-9]+\/*$/
* @route /^\/post\/new\/*$/
*/
public function postAdd() {
return file_get_contents(DIR."/html/post_new.html");
}
/**
* @route /^\/post\/[a-z0-9]+\/$/
*/
public function post() {
return file_get_contents(DIR."/html/post.html");
}
/**
* @route /^\/post\/[a-z0-9]+\/edit\/$/
*/
public function postEdit() {
return file_get_contents(DIR."/html/post_edit.html");
}
/**
* @route /^\/search\//
*/