Skip to content

Allow passing in an already started server to with-routes! macro? #2

Description

@johanhaleby

If so it would be possible to use bindings which can be nice. The server should not be stopped afterwards but the route-state should be reset.

(with-routes! *server*
  [times (atom 0)]
  {"/something" (fn [_] (if (< @times 2)
                            <resp 1>
                            <resp 2>))})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions