mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-19 07:02:00 +03:00
35 lines
634 B
JavaScript
35 lines
634 B
JavaScript
app Conduit {
|
|
title: "Conduit"
|
|
}
|
|
|
|
route "/" -> page Main
|
|
page Main {
|
|
component: import Main from "@ext/MainPage.js"
|
|
}
|
|
|
|
route "/login" -> page Login
|
|
page Login {
|
|
component: import Login from "@ext/LoginPage.js"
|
|
}
|
|
|
|
route "/register" -> page Signup
|
|
page Signup {
|
|
component: import Signup from "@ext/SignupPage.js"
|
|
}
|
|
|
|
entity User {=psl
|
|
id Int @id @default(autoincrement())
|
|
username String @unique
|
|
email String @unique
|
|
password String
|
|
psl=}
|
|
|
|
auth {
|
|
userEntity: User,
|
|
methods: [ EmailAndPassword ]
|
|
}
|
|
|
|
action signup {
|
|
fn: import { signup } from "@ext/actions.js",
|
|
entities: [User]
|
|
} |