mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 10:35:04 +03:00
68155711e8
* Implemented FE ACL & updated the examples. * PR fixes, fixed tests.
41 lines
737 B
JavaScript
41 lines
737 B
JavaScript
// Test .wasp file.
|
|
|
|
import something from "@ext/some/file"
|
|
|
|
// App definition.
|
|
app test_app {
|
|
// Title of the app.
|
|
title: "Hello World!"
|
|
}
|
|
|
|
auth {
|
|
onAuthFailedRedirectTo: "/test",
|
|
userEntity: User,
|
|
methods: [ EmailAndPassword ]
|
|
}
|
|
|
|
route "/" -> page Landing
|
|
page Landing {
|
|
component: import Landing from "@ext/pages/Landing",
|
|
authRequired: false
|
|
}
|
|
|
|
route "/test" -> page TestPage
|
|
page TestPage {
|
|
component: import Test from "@ext/pages/Test"
|
|
}
|
|
|
|
entity Task {=psl
|
|
id Int @id @default(autoincrement())
|
|
description String
|
|
isDone Boolean @default(false)
|
|
psl=}
|
|
|
|
query myQuery {
|
|
fn: import { myJsQuery } from "@ext/some/path"
|
|
}
|
|
|
|
dependencies {=json
|
|
"lodash": "^4.17.15"
|
|
json=}
|