-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.wasp
54 lines (47 loc) · 1.17 KB
/
main.wasp
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
app askTheDocuments {
wasp: {
version: "^0.15.0"
},
title: "PG Vector Example",
auth: {
userEntity: User,
methods: {
google: {
userSignupFields: import { fields } from "@src/auth/google.js",
configFn: import { getConfig } from "@src/auth/google.js",
}
},
onAuthFailedRedirectTo: "/"
},
client: {
rootComponent: import { Layout } from "@src/Layout.tsx",
},
}
route RootRoute { path: "/", to: MainPage }
page MainPage {
component: import { Main } from "@src/pages/MainPage.tsx"
}
action embedDocument {
fn: import { embedDocument } from "@src/documents.js",
entities: [Document],
}
action getScrapeCandidates {
fn: import { getScrapeCandidates } from "@src/documents.js",
entities: [Document],
}
query getDocuments {
fn: import { getDocuments } from "@src/documents.js",
entities: [Document]
}
action searchDocuments {
fn: import { searchDocuments } from "@src/documents.js",
entities: [Document]
}
action askDocuments {
fn: import { askDocuments } from "@src/documents.js",
entities: [Document]
}
action deleteDocument {
fn: import { deleteDocument } from "@src/documents.js",
entities: [Document]
}