Changeset 2864 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/wporg-gp-routes.php
- Timestamp:
- 03/31/2016 08:25:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/wporg-gp-routes.php
r2531 r2864 13 13 require_once __DIR__ . '/routes/locale.php'; 14 14 require_once __DIR__ . '/routes/stats-overview.php'; 15 require_once __DIR__ . '/routes/wp-directory.php'; 15 16 require_once __DIR__ . '/routes/wp-plugins.php'; 17 require_once __DIR__ . '/routes/wp-themes.php'; 16 18 17 19 class WPorg_GP_Routes { … … 34 36 * - /languages/$locale/$path 35 37 * - /profile/$path 38 * - /projects/wp-plugins/? 39 * - /projects/wp-themes/? 36 40 * 37 41 * Adds: … … 45 49 * - /projects/wp-plugins/$project/contributors 46 50 * - /projects/wp-plugins/$project/language-packs 51 * - /projects/wp-themes/$project 52 * - /projects/wp-themes/$project/contributors 53 * - /projects/wp-themes/$project/language-packs 47 54 */ 48 55 public function register_routes() { … … 77 84 GP::$router->prepend( "/projects/wp-plugins/$project/contributors", array( 'WPorg_GP_Route_WP_Plugins', 'get_plugin_contributors' ) ); 78 85 GP::$router->prepend( "/projects/wp-plugins/$project/language-packs", array( 'WPorg_GP_Route_WP_Plugins', 'get_plugin_language_packs' ) ); 86 GP::$router->prepend( "/projects/wp-themes/$project", array( 'WPorg_GP_Route_WP_Themes', 'get_theme_projects' ) ); 87 GP::$router->prepend( "/projects/wp-themes/$project/contributors", array( 'WPorg_GP_Route_WP_Themes', 'get_theme_contributors' ) ); 88 GP::$router->prepend( "/projects/wp-themes/$project/language-packs", array( 'WPorg_GP_Route_WP_Themes', 'get_theme_language_packs' ) ); 79 89 } 80 90 }
Note: See TracChangeset
for help on using the changeset viewer.