v0.0.5 Made edit and update
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user