Exemplo n.º 1
0
<?php

use Routing\Route;
Route::get('/', 'ViewController@index');
Route::get('/profile', 'ViewController@profile');
Route::get('/auth', 'UserController@auth');
Route::post('/login', 'UserController@login');
Route::post('/register', 'UserController@register');
Route::get('/name', 'UserController@getName');
Route::get('/logout', 'UserController@logout');
Route::get('/dangky', 'ViewController@getRegisterView');
Route::get('/dangnhap', 'ViewController@getLoginView');
Route::get('/data', 'NewsController@getLatestNews');
Route::get('/chitiet', 'ViewController@getDetails');
Route::get('/hotview', 'ViewController@getHotViews');
Route::get('/tintuc', 'ViewController@getNews');
Route::post('/profile/edit/password', 'UserController@postUserEditPassword');
Route::post('/profile/edit/information', 'UserController@postUserEditInfor');