Fork me on GitHub
#pedestal
<
2023-10-29
>
souenzzo00:10:03

Hello @hlship, me again studying #C0K65B20P https://github.com/pedestal/pedestal.ions/blob/0.1.3/src/io/pedestal/ions.clj#L162, from pedestal ions, returns a function (a ring handler) If we use the ion-provider in a pedestal https://github.com/pedestal/pedestal-ions-sample/blob/master/src/ion_sample/service.clj#L176 and call https://github.com/pedestal/pedestal-ions-sample/blob/master/src/ion_sample/ion.clj#L26, it will return a https://github.com/pedestal/pedestal-ions-sample/blob/master/src/ion_sample/ion.clj#L59-L65 Ok, I know that pedestal.ions don't have a server But inside https://github.com/pedestal/pedestal/blob/master/service/src/io/pedestal/http.clj#L453 we call server function in the return of create-provider So: • create-provider should return a service-map, not a function as pedestal.ions does (bug in pedestal.ions)

hlship05:11:25

That is wuite possible. I don’t have any experience with Ions so rhis might be a challenge to sort out.

souenzzo09:11:55

I was using pedestal.ions as a reference to know "best practices on implementing a custom provider"