Commit 5a8f7ecd authored by Alp Mestanogullari's avatar Alp Mestanogullari

Restrict access to graphql endpoints to only authenticated users

parent 6c049d5e
......@@ -158,5 +158,4 @@ api
:: (Typeable env, HasConnectionPool env, HasConfig env, HasMail env, HasJobEnv' env)
=> ServerT API (GargM env GargError)
api (SAS.Authenticated _auser) = httpPubApp [] app :<|> pure httpPlayground
--api _ = panic "401 in graphql" --SAS.throwAll (_ServerError # err401)
api _ = httpPubApp [] app :<|> pure httpPlayground
api _ = SAS.throwAll (_ServerError # err401)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment