Fragment gemist bijna af
This commit is contained in:
18
website/routes/api.php
Normal file
18
website/routes/api.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:api')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
16
website/routes/channels.php
Normal file
16
website/routes/channels.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Broadcast Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may register all of the event broadcasting channels that your
|
||||
| application supports. The given channel authorization callbacks are
|
||||
| used to check if an authenticated user can listen to the channel.
|
||||
|
|
||||
*/
|
||||
|
||||
Broadcast::channel('App.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
||||
18
website/routes/console.php
Normal file
18
website/routes/console.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Console Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is where you may define all of your Closure based console
|
||||
| commands. Each Closure is bound to a command instance allowing a
|
||||
| simple approach to interacting with each command's IO methods.
|
||||
|
|
||||
*/
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->describe('Display an inspiring quote');
|
||||
64
website/routes/web.php
Normal file
64
website/routes/web.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?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 redirect()->route('/radio/gemist'); });
|
||||
|
||||
Route::get('/nieuws', 'NewsController@overview');
|
||||
Route::get('/nieuws/regio/{region}', 'NewsController@regionlist' )->where(['region' => '[a-z0-9]+']);
|
||||
Route::get('/nieuws/thema/{theme}', 'NewsController@themelist' )->where(['themelist' => '[a-z0-9]+']);
|
||||
Route::get('/nieuws/{id}/{title}', 'NewsController@show')->where(['id' => '\d+']);
|
||||
Route::get('/nieuws/zoeken/{query}', 'NewsController@search');
|
||||
Route::get('/nieuws/zoeken', function(Illuminate\Http\Request $request) {
|
||||
if($query = $request->get('query', null)) {
|
||||
return redirect('/nieuws/zoeken/' . urlencode($query));
|
||||
}
|
||||
return redirect('/nieuws');
|
||||
});
|
||||
|
||||
Route::get('/agenda', 'CalendarController@overview');
|
||||
Route::get('/agenda/{id}/{title}', 'CalendarController@show')->where(['id' => '\d+']);
|
||||
|
||||
Route::get('/onair', 'RadioController@onair');
|
||||
|
||||
Route::get('/radio/gids/{shift?}', 'RadioController@schedule')->where(['shift' => '-?\d+']);
|
||||
Route::get('/radio/programma/{id}/{title}', 'RadioController@program')->where(['id' => '\d+']);
|
||||
|
||||
Route::get('/luister/live', 'StreamController@liveradio');
|
||||
Route::get('/luister/fragment/{id}/{title}', 'StreamController@podcast')->where(['id' => '\d+']);
|
||||
Route::get('/luister/programma/{year}/{month}/{day}/{hour}/{duration}/{offset?}', 'StreamController@program')
|
||||
->where(['id' => '\d+', 'year' => '20\d\d', 'month' => '\d\d?', 'day' => '\d\d?', 'hour' => '\d\d?', 'duration' => '\d\d?', 'offset' => '\d\d?']);
|
||||
|
||||
Route::get('/radio/gemist', ['as' => 'gemist', 'uses' => 'RadioController@podcasts']);
|
||||
Route::get('/radio/gemist/zoeken/{query}', 'RadioController@searchpodcast');
|
||||
Route::get('/radio/gemist/zoeken', function(Illuminate\Http\Request $request) {
|
||||
if($query = $request->get('query', null)) {
|
||||
return redirect('/gemist/zoeken/' . urlencode($query));
|
||||
}
|
||||
return redirect('/gemist');
|
||||
});
|
||||
|
||||
Route::get('/radio/gemist/fragment/{id}/{title}', 'RadioController@podcast')->where(['id' => '\d+']);
|
||||
Route::get('/radio/gemist/programma/{programma}/{title}', 'RadioController@podcasts')->where(['programma' => '\d+']);
|
||||
|
||||
Route::get('/kijk/live', 'StreamController@livetv');
|
||||
|
||||
Route::get('/kerkdienst', 'KerkdienstController@main');
|
||||
Route::get('/kerkdienst/luister', 'StreamController@kerkdienst');
|
||||
|
||||
//Route::get('/6fm/over-6fm', function() { return view('about'); });
|
||||
//Route::get('/6fm/contact', function() { return view('contact'); });
|
||||
//Route::get('/6fm/adverteren', function() { return view('adverteren'); });
|
||||
|
||||
//Route::get('/special/stmaarten', function() { return file_get_contents('http://api-dev.6fm.nl/special/stmaarten'); });
|
||||
|
||||
//Route::get('/kabelkrant', function() { return view('kabelkrant'); });
|
||||
Reference in New Issue
Block a user