summaryrefslogtreecommitdiff
path: root/src/web/_controller/_meta.php
blob: 06c7c0ab05cf40e187241239a8e0b6dbbd82377f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php /* Copyright (c) 2024 Freya Murphy */
class _meta_controller extends XSS_Controller {

	public function manifest(): void {

		$json = array(
			'short_name' => CONFIG['domain'],
			'name' => CONFIG['domain'],
			'icons' => [
				array(
					'src' => $this->get_url('public/icons/logo512.png'),
					'type' => 'image/png',
					'sizes' => '512x512',
					'purpose' => 'any maskable'
				)
			],
			'id' => $this->get_url('home'),
			'start_url' => $this->get_url('home'),
			'background_color' => '#181818',
			'display' => 'standalone',
			'scope' => '/',
			'theme_color' => '#181818',
			'shortcuts' => [],
			'description' => 'Post posts postfully on XSSBook',
			'screenshots' => []
		);

		header('Content-type: application/json');
		echo json_encode($json);
	}

}

?>