mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-14 11:09:19 +00:00
finalisation de ma part :)
This commit is contained in:
@ -81,6 +81,15 @@ class PostController extends Controller {
|
||||
return file_get_contents(DIR."/html/post.html");
|
||||
}
|
||||
|
||||
/**
|
||||
* @route /^\/post\/[0-9]+\/delete\/$/
|
||||
* @title Article
|
||||
*/
|
||||
public function delete() {
|
||||
Post::remove(Post::get($_GET["post"]));
|
||||
header("Location: /");
|
||||
}
|
||||
|
||||
/**
|
||||
* @route /^\/post\/[0-9]+\/upload\/$/
|
||||
*/
|
||||
|
Reference in New Issue
Block a user