2020-10-30 22:18:17 +03:00
|
|
|
app Conduit {
|
|
|
|
title: "Conduit"
|
2020-10-30 18:28:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
route "/" -> page Main
|
|
|
|
page Main {
|
|
|
|
component: import Main from "@ext/MainPage.js"
|
|
|
|
}
|
2020-10-30 22:18:17 +03:00
|
|
|
|
|
|
|
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]
|
|
|
|
}
|