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
/** | |
* Add Route | |
* | |
* This will dynamically create the following routes for the name passed. | |
* Anywhere you see "name" below, replace with the passed param for name. | |
* e.g. addRoute(this, "posts") -> URL = "/posts", Route = PostsIndexRoute, etc. | |
* | |
* IMPORTANT: All templates render INTO "name" parent template. Put an {{outlet}} there | |
* | |
* URL | Route Name | Controller | Template |
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 | |
/* | |
Plugin Name: Pug Bomb API Endpoint | |
Description: Adds an API endpoint at /api/pugs/$n_pugs | |
Version: 0.1 | |
Author: Brian Fegter | |
Author URL: http://coderrr.com | |
*/ | |
class Pugs_API_Endpoint{ |