mirror of
https://github.com/monadicsystems/okapi.git
synced 2024-11-22 08:54:32 +03:00
Organize more
This commit is contained in:
parent
e8de3cd590
commit
dcf4660118
@ -179,12 +179,12 @@ data Executable = Run (IO WAI.Response) | Null
|
||||
|
||||
type Compiler = Request -> Executable
|
||||
|
||||
executable ::
|
||||
artifacts ::
|
||||
forall m p q h b r.
|
||||
Monad m =>
|
||||
Plan m p q h b r ->
|
||||
Compiler
|
||||
executable plan (method, path, query, body, headers) =
|
||||
artifacts plan (method, path, query, body, headers) =
|
||||
if method == plan.endpoint.method
|
||||
then
|
||||
let pathResult = fst $ Path.eval plan.endpoint.pathScript path
|
||||
|
Loading…
Reference in New Issue
Block a user