2023-10-16 17:14:57 +03:00
|
|
|
app whereDoWeEat {
|
|
|
|
wasp: {
|
2024-03-18 19:47:32 +03:00
|
|
|
version: "^0.13.0"
|
2023-10-16 17:14:57 +03:00
|
|
|
},
|
|
|
|
title: "where-do-we-eat",
|
|
|
|
client: {
|
2024-02-19 12:27:31 +03:00
|
|
|
rootComponent: import { Layout } from "@src/client/Layout.jsx",
|
2023-10-16 17:14:57 +03:00
|
|
|
},
|
|
|
|
auth: {
|
|
|
|
userEntity: User,
|
|
|
|
onAuthFailedRedirectTo: "/login",
|
|
|
|
methods: {
|
|
|
|
usernameAndPassword: {}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
webSocket: {
|
2024-02-19 12:27:31 +03:00
|
|
|
fn: import { webSocketFn } from "@src/server/ws-server.js",
|
2023-10-16 17:14:57 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
entity User {=psl
|
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
psl=}
|
|
|
|
|
|
|
|
route RootRoute { path: "/", to: MainPage }
|
|
|
|
page MainPage {
|
2024-02-19 12:27:31 +03:00
|
|
|
component: import Main from "@src/client/MainPage.tsx",
|
2023-10-16 17:14:57 +03:00
|
|
|
authRequired: true
|
|
|
|
}
|
|
|
|
|
|
|
|
route LoginRoute { path: "/login", to: LoginPage }
|
|
|
|
page LoginPage {
|
2024-02-19 12:27:31 +03:00
|
|
|
component: import { LoginPage } from "@src/client/pages/LoginPage.jsx"
|
2023-10-16 17:14:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
route RegisterRoute { path: "/signup", to: RegisterPage }
|
|
|
|
page RegisterPage {
|
2024-02-19 12:27:31 +03:00
|
|
|
component: import { SignupPage } from "@src/client/pages/SignupPage.jsx"
|
2023-10-16 17:14:57 +03:00
|
|
|
}
|