<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/verify' , [
'uses' => 'UserController@getverify' ,
'as' => 'verify'
]);
Route::group( ['middleware' => ['web']] , function() {
Route::get('/', function () {
return view('welcome');
})->name('home');
Route::post('/signup' , [
'uses' => 'UserController@postSignUp' ,
'as' => 'signup'
]);
Route::post('/signin' , [
'uses' => 'UserController@postSignIn' ,
'as' => 'signin'
]);
Route::get('/myplace' , [
'uses' => 'UserController@getmyplace' ,
'as' => 'myplace' ,
'middleware' => 'auth:web'
]);//->name('myplace');
Route::get('signup/email/{confirmationCode}', [
'as' => 'confirmation_path',
'uses' => 'UserController@confirm'
]);
Route::get('login', 'Auth\AuthController@redirectToFacebook');
Route::get('login/callback', 'Auth\AuthController@getFacebookCallback');
});