diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-20 00:35:56 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-20 00:54:58 +0100 |
commit | e71fdc8dbac5c77d6c2fd252f31fc12cd6375e30 (patch) | |
tree | 890953876b06a647e6790715f2580aa94aebe4a7 /src/backend/tau/api/service.clj | |
parent | e4714f94ff6d01847fa61c33c678b6d856c3b30a (diff) |
fix: Fix related streams on API endpoints
Diffstat (limited to 'src/backend/tau/api/service.clj')
-rw-r--r-- | src/backend/tau/api/service.clj | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/tau/api/service.clj b/src/backend/tau/api/service.clj index de2e994..b9f0e1d 100644 --- a/src/backend/tau/api/service.clj +++ b/src/backend/tau/api/service.clj @@ -10,15 +10,16 @@ (defrecord Service [id info base-url kiosk-list]) -(defn get-service-info +(defn get-info [service] (map->Service {:id (.getServiceId service) :info (j/from-java (.getServiceInfo service)) :base-url (.getBaseUrl service) - :kiosk-list (map #(kiosk/get-kiosk-info % (.getServiceId service)) - (.getAvailableKiosks (.getKioskList service)))})) + ;; :kiosk-list (map #(kiosk/get-info % (.getServiceId service)) + ;; (.getAvailableKiosks (.getKioskList service))) + })) -(defn get-service-list-info +(defn get-services [] - (map #(get-service-info %) (NewPipe/getServices))) + (map #(get-info %) (NewPipe/getServices))) |