Skip to content

Instantly share code, notes, and snippets.

@ProdigyView
Created January 8, 2019 00:35
Show Gist options
  • Save ProdigyView/54c4625240f46e8ddd4486c4b99e9d9a to your computer and use it in GitHub Desktop.
Save ProdigyView/54c4625240f46e8ddd4486c4b99e9d9a to your computer and use it in GitHub Desktop.
<?php
include_once (dirname(__FILE__) . '/../vendor/autoload.php');
use prodigyview\network\Router;
use prodigyview\network\Request;
use prodigyview\network\Response;
Router::post('/callme', array('callback'=>function(Request $request){
$response = array('status' => 'success', 'message' => 'Responding');
echo Response::createResponse(200, json_encode($response));
}));
Router::setRoute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment