aboutsummaryrefslogtreecommitdiff
path: root/src/server/Controller/Index.hs
blob: da670517a758ed46644bffbb2a1fe298e7d54a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Controller.Index
  ( getIndex
  , signOut
  ) where

import Web.Scotty

import Network.HTTP.Types.Status (ok200)

import qualified LoginSession

import View.Page (page)

getIndex :: ActionM ()
getIndex = html page

signOut :: ActionM ()
signOut = do
  LoginSession.delete
  status ok200