v0.1.4aa - Added create & get user backend
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
require "../../bootstrap.php";
|
||||
|
||||
use Backend\Model\Post;
|
||||
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
|
||||
if(isset($_POST['id']))
|
||||
$data = Post::find($_POST['id']);
|
||||
else
|
||||
$data = Post::all();
|
||||
echo $data;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user