1 module Rakka.Resource.CheckAuth
6 import Network.HTTP.Lucu
7 import Rakka.Environment
11 resCheckAuth :: Environment -> ResourceDef
14 resUsesNativeThread = False
18 do userID <- getUserID env
20 Just _ -> setStatus NoContent
21 Nothing -> setStatus Forbidden