Created
September 5, 2019 04:25
-
-
Save jeremyabbott/f20322520a29559d51d2e8324a2afff3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let imageController id = controller { | |
show (fun ctx imageId -> (sprintf "Edit handler - id: %s; imageId %s" id imageId ) |> Controller.text ctx) | |
} | |
let topRouter = router { | |
forwardf "/%s/images" imageController | |
} | |
let app = application { | |
pipe_through endpointPipe | |
use_router topRouter | |
url "http://0.0.0.0:8085/" | |
memory_cache | |
use_gzip | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment