summary refs log tree commit diff
path: root/api/src/routes/store/published-listings/applications.ts
blob: 060a4c3de9f0379a1095550c4dcd3a13b2d15d0a (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { Request, Response, Router } from "express";
import { route } from "@fosscord/api";

const router: Router = Router();

router.get("/:id", route({}), async (req: Request, res: Response) => {
	//TODO
	const id = req.params.id;
	res.json({
		id: "",
		summary: "",
		sku: {
			id: "",
			type: 1,
			dependent_sku_id: null,
			application_id: "",
			manifets_labels: [],
			access_type: 2,
			name: "",
			features: [],
			release_date: "",
			premium: false,
			slug: "",
			flags: 4,
			genres: [],
			legal_notice: "",
			application: {
				id: "",
				name: "",
				icon: "",
				description: "",
				summary: "",
				cover_image: "",
				primary_sku_id: "",
				hook: true,
				slug: "",
				guild_id: "",
				bot_public: "",
				bot_require_code_grant: false,
				verify_key: "",
				publishers: [
					{
						id: "",
						name: ""
					}
				],
				developers: [
					{
						id: "",
						name: ""
					}
				],
				system_requirements: {},
				show_age_gate: false,
				price: {
					amount: 0,
					currency: "EUR"
				},
				locales: []
			},
			tagline: "",
			description: "",
			carousel_items: [
				{
					asset_id: ""
				}
			],
			header_logo_dark_theme: {}, //{id: "", size: 4665, mime_type: "image/gif", width 160, height: 160}
			header_logo_light_theme: {},
			box_art: {},
			thumbnail: {},
			header_background: {},
			hero_background: {},
			assets: []
		}
	}).status(200);
});

export default router;