Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Phoenix Hospitality Management System
- * Phoenix REST API - API routes file
- * Written in PHP using the Slim microframework
- *
- * @author Troy L. Marker
- * @version 0.5.0
- * @since 0.5.0
- * @copyright Copyright (c) 2010 By Troy Marker Enterprises
- *
- * Declare namespace and Import needed functions/classes
- */
- use Slim\App;
- use \App\Action\Grade\AddAction as GradeAdd;
- return function (App $app) {
- $app->get('/', \App\Action\InfoAction::class); // Route to the API information page
- $app->post('/grade/add[/]', GradeAdd); // Route to the Grade Addition API call
- $app->get('/grade/list[/]', \App\Action\Grade\ListAction::class); // Route to the Grade List API call
- $app->delete('/grade/remove/[{id}]', \App\Action\Grade\RemoveAction::class); // Route to the Grade Removal API call
- $app->get('/grade/single/[{id}]', \App\Action\Grade\SingleAction::class); // Route to the Grade Single call
- $app->post('/grade/update/{id}/{grade}', \App\Action\Grade\UpdateAction::class); // Route Grade Update API call
- $app->post('/department/add[/]', \App\Action\Department\AddAction::class); // Route to the Department Addition API call
- $app->get('/department/list[/]', \App\Action\Department\ListAction::class); // Route to the Department List API call
- $app->delete('/department/remove/[{id}]', \App\Action\Department\RemoveAction::class); // Route to the Department Removal API call
- $app->get('/department/single/[{id}]', \App\Action\Department\SingleAction::class); // Route to the Department Single API call
- $app->post('/department/update/{id}/{department}', \App\Action\Department\UpdateAction::class); // Route to the Dapartment Update API call
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement