oakes / Nightlight

An embedded editor for Clojure
https://sekao.net/nightlight/
The Unlicense
788 stars 35 forks source link

run in an existing webserver #3

Closed nha closed 7 years ago

nha commented 7 years ago

Feature request: could it be possible to expose a ring handler as part of the API?

This would allow:

Thanks for doing this!

oakes commented 7 years ago

Very good idea, I'll work on that soon.

oakes commented 7 years ago

I moved the final handler to a new var at nightlight.core/app in 52af45837a1b570f31b3848dd938e8fc1f7898aa. I'm not that experienced with ring middleware stuff so please let me know if there is more I can do.