mirror of
https://github.com/aelve/guide.git
synced 2024-12-22 12:21:31 +03:00
Merge branch 'master'
into front-ps
This commit is contained in:
commit
60028da1ef
14
.gitlab-ci.yml
Normal file
14
.gitlab-ci.yml
Normal file
@ -0,0 +1,14 @@
|
||||
image: registry.gitlab.frielforreal.com/friel/haskellstack:latest
|
||||
|
||||
cache:
|
||||
untracked: true
|
||||
paths:
|
||||
- .stack-work
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- stack build
|
@ -321,9 +321,9 @@ guideApp waiMetrics = do
|
||||
if isJust user
|
||||
then Spock.redirect "auth/logout"
|
||||
else Spock.redirect "auth/login"
|
||||
Spock.getpost "login" $ authRedirect "/" loginAction
|
||||
Spock.get "logout" logoutAction
|
||||
Spock.getpost "register" $ authRedirect "/" signupAction
|
||||
Spock.getpost (authRoute <//> "login") $ authRedirect "/" loginAction
|
||||
Spock.get (authRoute <//> "logout") logoutAction
|
||||
Spock.getpost (authRoute <//> "register") $ authRedirect "/" signupAction
|
||||
|
||||
loginAction :: GuideAction ctx ()
|
||||
loginAction = do
|
||||
|
Loading…
Reference in New Issue
Block a user