From b981dc8715b36c83107de4c2868e3410a6faf457 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 7 Oct 2020 18:41:35 +0200 Subject: First commit --- routes/api.php | 19 +++++++++++++++++++ routes/channels.php | 18 ++++++++++++++++++ routes/console.php | 19 +++++++++++++++++++ routes/web.php | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 93 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..5d451e1 --- /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..e05f4c9 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..d83200b --- /dev/null +++ b/routes/web.php @@ -0,0 +1,37 @@ +