mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-15 03:29:19 +00:00
changements faits
This commit is contained in:
@ -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\//
|
||||
*/
|
||||
|
Reference in New Issue
Block a user