summaryrefslogtreecommitdiff
path: root/web/_controller/_index.php
blob: fdf9440cb4b816d0bf3ded8f4b47e2da66dbdae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php /* Copyright (c) 2024 Freya Murphy */
class _index_controller extends Controller {

	// the home model
	private $home_model;

	// the request model
	private $request_model;

	// the caceh model
	private $cache_model;

	public function index(): void {
		if ($this->main->session) {
			$this->redirect('/home');
		} else {
			$this->redirect('/login');
		}
	}

}

?>