mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 03:12:11 +00:00
29 lines
441 B
PHP
29 lines
441 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
class HomeController extends \App\Controller {
|
|
|
|
|
|
/**
|
|
* @route /^\/$/
|
|
*/
|
|
public function home() {
|
|
return file_get_contents(DIR."/html/index.html");
|
|
}
|
|
|
|
/**
|
|
* @route /^\/post\/[a-z0-9]+\/*$/
|
|
*/
|
|
public function post() {
|
|
return file_get_contents(DIR."/html/post.html");
|
|
}
|
|
|
|
/**
|
|
* @route /^\/search\//
|
|
*/
|
|
public function search() {
|
|
return file_get_contents(DIR."/html/search.html");
|
|
}
|
|
}
|