finalisation de ma part :)

This commit is contained in:
2019-03-06 09:13:31 +01:00
parent 9df001d565
commit cc8ee929f8
13 changed files with 91 additions and 101 deletions

View File

@ -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\/$/
*/