Created
January 8, 2019 00:35
-
-
Save ProdigyView/54c4625240f46e8ddd4486c4b99e9d9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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