Created
December 21, 2017 21:15
-
-
Save ViewFromTheBox/e6b9d27e514e25336a91a2a87b28ea43 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 | |
| include_once( SPORTS_BENCH_PATH . 'functions/rest-api/sports-bench-team-rest-controller.php' ); | |
| /** | |
| * Register the custom routes for the tables | |
| * | |
| * @since 1.4 | |
| */ | |
| function sports_bench_register_endpoints(){ | |
| //* Register the teams route | |
| $teams_route = new Sports_Bench_Team_REST_Controller(); | |
| $teams_route->register_routes(); | |
| } | |
| add_action('rest_api_init','sports_bench_register_endpoints'); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment