v0.0.5 Made edit and update

This commit is contained in:
Victor
2021-06-02 13:27:13 +02:00
parent 23a81e1925
commit 636672d8f2
5 changed files with 89 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
require "../../bootstrap.php";
use Backend\Model\Post;
session_start();
if (!isset($_SESSION['token'])) {
header("location: ../../Frontend/index.php?login=notloggedin");
}
header('Content-Type: application/json;charset=UTF-8');
echo "<pre>";
$data = Post::all();
echo $data;