Fork me on GitHub
#luminus
<
2019-04-10
>
vinurs15:04:41

is there any post about mount start order?

vinurs15:04:58

i read this, but it seems doesn’t explain clearly

lepistane16:04:01

clojure compiler does most of the magic

vinurs23:04:04

how can i control the order?

lepistane09:04:23

during app startup i specify the order but usually my mount states are separate so i don't have to think about that if you are looking for more control use component framework but i dont like it

vinurs10:04:40

in my case, i want to connect db first, then update something from db in interval seconds

lepistane10:04:46

create two states and (start db) (start interval) i had something similar and never had an issue

macrobartfast23:04:47

I just generated a new luminus project with a swagger backend after being away for a while and it looks... different... the endpoints look like

["/ping"
    {:get (constantly (ok {:message "pong"}))}]
is there documentation for the changes?

macrobartfast23:04:08

I used to have GET as a function, not :get, for example.

macrobartfast23:04:46

my main issue right now is getting my response as json as opposed to an octet stream for download.

macrobartfast23:04:55

but I think the docs refer to the old version.

macrobartfast23:04:56

my endpoint looks like:

["/foo"
 {:get (constantly (ok (json/write-str (slurp "resources/public/data.json"))))}]
and it's returning as an octet stream download in the response.