Commit f5c9af28 authored by Bastien Durel's avatar Bastien Durel
Browse files

handle POST only, redirect GET to admin

parent 15f00a9c
echo 'TODO';
header('Location: admin.php');
if ($_SERVER['REQUEST_METHOD'] != 'POST') die("unknown method");
include_once 'vendor/autoload.php';
$data = json_decode(file_get_contents('php://input'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment