Newer
Older
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
import { createDirectus, rest, } from '@directus/sdk';
type Post = {
id: string;
status: string;
sort: string;
user_created: string;
user_updated: string;
date_created: string;
date_updated: string;
title: string;
content: string;
}
type Member = {
id: number;
date_created: number;
name: string;
department: string;
image1: string;
image2: string;
}
type Mottos = {
Motto: string;
Description: string;
}
type Globals_translations = {
id: string;
Languages_code: string;
Introduction: string;
}
type Schema = {
Posts: Post[];
Globals: any;
Globals_translations: Globals_translations[];
Members: Member[];
Mottos: Mottos[]
}
export const CONTENT_URL = "https://content.hai-liste.de"
const directus = createDirectus<Schema>(CONTENT_URL).with(rest());
export default directus;