|
@@ -19,23 +19,11 @@ Auth::routes();
|
|
|
|
|
|
Route::get('/home', 'HomeController@index')->name('home');
|
|
Route::get('/home', 'HomeController@index')->name('home');
|
|
|
|
|
|
-//Route::get('/user', 'UserController@index')->name('all.positions');
|
|
|
|
|
|
+Route::get('/user','UserController@action');
|
|
Route::get('/user/{id}', 'UserController@show')->where('id', '[0-9]+')->name('user.position');
|
|
Route::get('/user/{id}', 'UserController@show')->where('id', '[0-9]+')->name('user.position');
|
|
-//Route::get('/user/{id}', 'UserController@date')->where('id', '[0-9]+')->name('user.position');
|
|
|
|
Route::get('/user/{id}/{date}', 'UserController@userdata')->where(['id'=>'[0-9]+','date'=>'[0-9]{4}-[0-9]{2}-[0-9]{2}'])->name('user.date');
|
|
Route::get('/user/{id}/{date}', 'UserController@userdata')->where(['id'=>'[0-9]+','date'=>'[0-9]{4}-[0-9]{2}-[0-9]{2}'])->name('user.date');
|
|
Route::get('/user/{id}/last', 'UserController@showLast')->where('id', '[0-9]+')->name('last.position');
|
|
Route::get('/user/{id}/last', 'UserController@showLast')->where('id', '[0-9]+')->name('last.position');
|
|
-//Route::get('/user/{id}','UserController@userdata');
|
|
|
|
-//Route::get('/user/{id}', function($user_id) {
|
|
|
|
-
|
|
|
|
- //$dati = DB::table('locations')::user_id->find($user_id); //DB::table('locations')->find($user_id);
|
|
|
|
-
|
|
|
|
- // return view('userdate',compact('dati'));
|
|
|
|
-//})->where('id', '[0-9]+')->name('user.position');
|
|
|
|
-
|
|
|
|
Route::post('/tbot/'.Telegram::getAccessToken(), function(){
|
|
Route::post('/tbot/'.Telegram::getAccessToken(), function(){
|
|
Telegram::commandsHandler(true);
|
|
Telegram::commandsHandler(true);
|
|
});
|
|
});
|
|
-//Route::get('/user', function () {
|
|
|
|
-// return view ('allpositions');
|
|
|
|
-//});
|
|
|
|
-Route::get('/user','UserController@action');
|
|
|
|
|
|
+
|