Allow user to override schema used for v1 of api
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ main = do
|
||||
runSettings appSettings $ middle $ \req respond -> do
|
||||
body <- strictRequestBody req
|
||||
resOrError <- liftIO $ H.session pool $ H.tx Nothing $
|
||||
authenticated currRole anonRole (app body) req
|
||||
authenticated currRole anonRole (app (cs $ configV1Schema conf) body) req
|
||||
either (respond . errResponse) respond resOrError
|
||||
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user