web/routes/web.php

27 lines
864 B
PHP
Raw Permalink Normal View History

2017-11-12 15:09:38 +01: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!
|
*/
2017-11-13 11:27:41 +01:00
Route::get('/', 'HomeController@index');
2017-11-12 15:09:38 +01:00
Auth::routes();
2017-11-13 11:27:41 +01:00
Route::get('/', 'HomeController@index')->name('home');
2017-11-12 15:09:38 +01:00
2017-11-12 23:36:48 +01:00
Route::get('/deals/list/{type}', 'HomeController@list')->name('deals.list');
2017-11-12 15:09:38 +01:00
2017-11-13 11:27:41 +01:00
Route::get('/deals/view/{type}/{id}', 'HomeController@view')->name('deals.view');
2017-11-21 07:20:06 +01:00
Route::post('/deals/delete/{type}/{id}', 'HomeController@delete')->name('deals.delete');
2017-11-20 12:52:52 +01:00
2017-11-20 23:29:57 +01:00
Route::match(['GET', 'POST'], '/deals/update/{type}/{id}', 'HomeController@update')->name('deals.update');