Last active
March 13, 2018 16:06
-
-
Save anthonybudd/ab3ff1b64c1041442f2e82965a77cf39 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
WP_Route::get('flights', 'listFlights'); | |
WP_Route::post('flights/{flight}', array('FlightController', 'singleFlight')); | |
function listFlights(){ | |
// Your Code Here | |
} | |
Class FlightController{ | |
public static function singleFlight($flight){ | |
// Your Code Here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment