Skip to content

Instantly share code, notes, and snippets.

@chanakaDe
Created August 1, 2016 19:09
Show Gist options
  • Save chanakaDe/95e45a15b752a85363ec15d4407d0310 to your computer and use it in GitHub Desktop.
Save chanakaDe/95e45a15b752a85363ec15d4407d0310 to your computer and use it in GitHub Desktop.
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/
$app->get('/', function () use ($app) {
return redirect('login.php');
});
$app->group(['prefix' => 'api/v1', 'namespace' => 'App\Http\Controllers'], function ($app) {
// Category
$app->get('category/{offset}', 'CategoryController@index');
$app->get('category/orderByDatedemo/{offset}', 'CategoryController@getByMostRecent');
// Boxset
$app->get('boxsetdemo/{offset}', 'BoxsetController@index');
$app->get('boxset/orderByDatedemo/{offset}', 'BoxsetController@getByMostRecent');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment