site-proximo/admin/json_ajax.php

11 lines
259 B
PHP
Raw Normal View History

2020-02-10 23:36:17 +01:00
<?php
$relativePath = "../";
require_once $relativePath.'classes/postHandler.php';
2020-02-10 23:36:17 +01:00
$rest_json = file_get_contents("php://input");
$_POST = json_decode($rest_json, true);
$handler = new PostHandler($_POST, $_FILES);
2020-02-10 23:36:17 +01:00
echo json_encode($handler->do_action());