pastethingy/app/Http/routes.php

23 lines
644 B
PHP
Raw Normal View History

2016-05-28 19:05:54 +02:00
<?php
2016-05-30 21:31:50 +02:00
use Illuminate\Http\Request;
2016-05-28 19:05:54 +02:00
/*
|--------------------------------------------------------------------------
| 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.
|
*/
2016-05-30 21:31:50 +02:00
Route::get('/', function (Request $request) {
return view('main', ['js' => $request->input('js', false)]);
2016-05-28 19:05:54 +02:00
});
2016-05-29 04:21:18 +02:00
2016-05-29 17:32:30 +02:00
Route::post('/paste', 'PasteController@create');
2016-05-29 04:21:18 +02:00
Route::get('/paste/{paste}', 'PasteController@view');