Skip to content

Handlers outside swaggerOf function #3

@davidtme

Description

@davidtme

I'm trying to break up a larger app into smaller chunks but I can't seem to get swaggerOf to recognize function/vals outside the swaggerOf call

let otherApp =
    GET >=> route  "/foo" >=> text "foo"

let webApp =
    swaggerOf (
        choose [
            GET >=> route  "/" >=> text "home"
            otherApp
            GET >=> route  "/bar" >=> text "bar"
        ]
    ) |> withConfig docsConfig

ends up with just:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions