mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 02:23:21 +03:00
75 lines
1.4 KiB
JavaScript
75 lines
1.4 KiB
JavaScript
app waspello {
|
|
wasp: {
|
|
version: "^0.15.0"
|
|
},
|
|
|
|
title: "Waspello",
|
|
|
|
auth: {
|
|
userEntity: User,
|
|
methods: {
|
|
usernameAndPassword: {},
|
|
google: {}
|
|
},
|
|
onAuthFailedRedirectTo: "/login"
|
|
}
|
|
}
|
|
|
|
route MainRoute { path: "/", to: Main }
|
|
page Main {
|
|
authRequired: true,
|
|
component: import Main from "@src/cards/MainPage.jsx"
|
|
}
|
|
|
|
route SignupRoute { path: "/signup", to: Signup }
|
|
page Signup {
|
|
component: import Signup from "@src/auth/SignupPage.jsx"
|
|
}
|
|
|
|
route LoginRoute { path: "/login", to: Login }
|
|
page Login {
|
|
component: import Login from "@src/auth/LoginPage.jsx"
|
|
}
|
|
|
|
// ------------------- Queries and actions
|
|
|
|
query getListsAndCards {
|
|
fn: import { getListsAndCards } from "@src/cards/lists.js",
|
|
entities: [List, Card]
|
|
}
|
|
|
|
// Lists
|
|
|
|
action createList {
|
|
fn: import { createList } from "@src/cards/lists.js",
|
|
entities: [List]
|
|
}
|
|
|
|
action updateList {
|
|
fn: import { updateList } from "@src/cards/lists.js",
|
|
entities: [List]
|
|
}
|
|
|
|
action deleteList {
|
|
fn: import { deleteList } from "@src/cards/lists.js",
|
|
entities: [List, Card]
|
|
}
|
|
|
|
action createListCopy {
|
|
fn: import { createListCopy } from "@src/cards/lists.js",
|
|
entities: [List, Card]
|
|
}
|
|
|
|
// Cards
|
|
|
|
action createCard {
|
|
fn: import { createCard } from "@src/cards/cards.js",
|
|
entities: [Card]
|
|
}
|
|
|
|
action updateCard {
|
|
fn: import { updateCard } from "@src/cards/cards.js",
|
|
entities: [Card]
|
|
}
|
|
|