v0.2.0 - Added CRUD for user

This commit is contained in:
Anders
2021-06-09 13:20:49 +02:00
parent 59f91682a7
commit 8dd1f423a6
11 changed files with 233 additions and 20 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
<?php
session_start();
require "../../bootstrap.php";
use Backend\Model\User;
@@ -9,7 +10,7 @@ if(isset($_POST['id']))
$data = User::find($_POST['id']);
else
$data = User::all('id', 'name');
echo $data;
echo json_encode(array($data, $_SESSION['id']));