1
0
forked from s421507/eOSP2
eOSP2/routes/web.php

74 lines
2.2 KiB
PHP
Raw Normal View History

2019-07-11 23:55:51 +02:00
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('depot');
});
Route::get('/dokumentacja', function(){
return view('documents');
});
Route::get('/straznica', function(){
return view('depot');
});
Route::get('/pojazdy', function(){
return view('vehicles');
});
2019-11-23 15:01:59 +01:00
Route::get('/wyjazdy', 'operationsController@create');
Route::get('/wyjazdy/add/', 'operationsController@addForm');
Route::post('/wyjazdy', 'operationsController@store');
2019-07-11 23:55:51 +02:00
Route::get('/register', 'RegistrationController@create');
Route::post('/register', 'RegistrationController@store');
2019-09-11 00:09:22 +02:00
Route::get('/login', 'SessionsController@create');
Route::post('/login', 'SessionsController@store');
Route::get('/logout', 'SessionsController@destroy');
2019-07-11 23:55:51 +02:00
2019-09-25 18:42:48 +02:00
2019-09-25 18:39:01 +02:00
Route::get('/strazacy', 'fireFightersController@create');
Route::get('/strazacy/add', 'fireFightersController@addForm');
Route::post('/strazacy', 'fireFightersController@store');
2019-10-05 22:29:46 +02:00
Route::get('/strazacy/edit/{id}', 'fireFightersController@editForm');
2019-10-06 02:15:16 +02:00
Route::post('/strazacy/edit', 'fireFightersController@update');
2019-09-25 18:39:01 +02:00
Route::get('/jednostka', 'fireStationController@create');
Route::post('/jednostka', 'fireStationController@store');
2019-10-01 20:03:20 +02:00
Route::get('/jednostka/getcounties/{id}','DataController@getCounties');
Route::get('/jednostka/getcommunities/{id}','DataController@getCommunities');
2019-11-17 17:08:02 +01:00
Route::get('/pojazdy', 'VehiclesController@create');
Route::get('/pojazdy/add', 'VehiclesController@addForm');
Route::post('/pojazdy', 'VehiclesController@store');
Route::get('/pojazdy/edit/{id}', 'VehiclesController@editForm');
Route::post('/pojazdy/edit', 'VehiclesController@update');
2019-10-05 22:29:46 +02:00
2019-10-02 19:01:29 +02:00
Route::get('register/verify/{confirmationCode}', [
'as' => 'confirmation_path',
'uses' => 'RegistrationController@confirm'
]);
2019-07-11 23:55:51 +02:00
//Auth::routes();
//
//Route::get('/home', 'HomeController@index')->name('home');