summaryrefslogtreecommitdiff
path: root/src/web/_controller/_index.php
blob: 2fd7db2141bf849b185914345fc76d6ac53ec8dd (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('/auth/login');
		}
	}

}

?>