From 5a8c47e29afdbb61c32c1e03162abb1bb871ee9e Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 2 Apr 2020 21:52:04 +0200 Subject: Initial commit. --- routes/api.php | 19 +++++++++++++++++++ routes/channels.php | 18 ++++++++++++++++++ routes/console.php | 19 +++++++++++++++++++ routes/web.php | 26 ++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 routes/api.php create mode 100644 routes/channels.php create mode 100644 routes/console.php create mode 100644 routes/web.php (limited to 'routes') diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..bcb8b18 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,19 @@ +get('/user', function (Request $request) { + return $request->user(); +}); diff --git a/routes/channels.php b/routes/channels.php new file mode 100644 index 0000000..963b0d2 --- /dev/null +++ b/routes/channels.php @@ -0,0 +1,18 @@ +id === (int) $id; +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..da55196 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->describe('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..745f9bb --- /dev/null +++ b/routes/web.php @@ -0,0 +1,26 @@ +name('index'); +Route::get('/topic/{topic}', 'IndexController@topic')->name('topic')->where('topic', '(.+)'); +Route::get('/topic/', 'IndexController@topicindex')->name('topic_index'); +Route::get('/new', 'IndexController@new')->name('newest'); +Route::get('/search', 'IndexController@search')->name('search'); +Route::get('/popular', 'IndexController@popular')->name('popular'); +Route::get('/random', 'IndexController@random')->name('random'); + +#Auth::routes(); + +Route::get('/home', 'HomeController@index')->name('home'); -- cgit v1.2.3