From 2cd1589d6ae7095770e8c5dda10b138861d70501 Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 23 Feb 2020 23:11:03 +0100 Subject: Initial commit. Calendar is working. --- app/Http/Controllers/IndexController.php | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 app/Http/Controllers/IndexController.php (limited to 'app/Http/Controllers/IndexController.php') diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php new file mode 100644 index 0000000..c77de48 --- /dev/null +++ b/app/Http/Controllers/IndexController.php @@ -0,0 +1,40 @@ +getCalendar(); + Cache::put('schedule_' . $username, $schedule, 360); + } else { + $schedule = Cache::get('schedule_' . $username); + } + + header('Content-Type: text/calendar; charset=utf-8'); + #var_dump($schedule); + echo $schedule; + } + + public function test($param = null) { + $season = new AnimeSeason(); + } +} -- cgit v1.2.3