Use type alias for clarity
This commit is contained in:
@@ -57,7 +57,7 @@ import PostgREST.Types
|
||||
|
||||
import Prelude
|
||||
|
||||
app :: DbStructure -> AppConfig -> Text -> BL.ByteString -> DbRole -> Request -> H.Tx P.Postgres s Response
|
||||
app :: DbStructure -> AppConfig -> DbRole -> BL.ByteString -> DbRole -> Request -> H.Tx P.Postgres s Response
|
||||
app dbstructure conf authenticator reqBody dbrole req =
|
||||
case (path, verb) of
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import PostgREST.Config (AppConfig (..), corsPolicy)
|
||||
|
||||
import Prelude
|
||||
|
||||
authenticated :: forall s. AppConfig -> Text ->
|
||||
authenticated :: forall s. AppConfig -> DbRole ->
|
||||
(DbRole -> Request -> H.Tx P.Postgres s Response) ->
|
||||
Request -> H.Tx P.Postgres s Response
|
||||
authenticated conf authenticator app req = do
|
||||
|
||||
Reference in New Issue
Block a user