Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Application Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register all of the routes for an application.
  9. | It's a breeze. Simply tell Laravel the URIs it should respond to
  10. | and give it the controller to call when that URI is requested.
  11. |
  12. */
  13.  
  14. /* Back End */
  15. Route::group(['middleware' => 'auth'], function () {
  16. Route::controller('admin/video', 'Admin\Video\VideoController');
  17. Route::controller('admin/standard', 'Admin\Standard\StandardController');
  18. Route::controller('admin/convenient', 'Admin\Convenient\ConvenientController');
  19. Route::controller('admin/contact', 'Admin\Contact\ContactController');
  20. Route::controller('admin/user', 'Admin\User\UserController');
  21. Route::controller('admin/logs', 'Admin\logs\LogsController');
  22. Route::controller('admin', 'Admin\AdminController');
  23. });
  24.  
  25. // Localization
  26. Route::group(['prefix' => LaravelLocalization::setLocale()], function()
  27. {
  28.  
  29. /* Front End */
  30. Route::get('home', 'HelloController@index');
  31. Route::get('inseefai', 'HelloController@inseefai');
  32. Route::get('news', 'HelloController@news');
  33. Route::get('product', 'HelloController@product');
  34. // Route::get('who', 'HelloController@who');
  35. Route::get('about', 'HelloController@about');
  36. Route::get('contact', 'HelloController@contact');
  37. Route::get('video_list', 'HelloController@video_list' );
  38. Route::get('users', function()
  39. {
  40. return View::make('hello.news');
  41. });
  42.  
  43. Route::get('content_list' , function()
  44. {
  45. return View::make('hello.content_list');
  46. });
  47.  
  48. Route::get('all_news', function()
  49. {
  50. return View::make('hello.all_news');
  51. });
  52. });
  53. // End Localization
  54.  
  55. // Authentication routes...
  56. Route::get('auth/login', 'Auth\AuthController@getLogin');
  57. Route::post('auth/login', 'Auth\AuthController@postLogin');
  58. Route::get('auth/logout', 'Auth\AuthController@getLogout');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement