Web Development with Clojure, Third Edition: code continuity (141)

@svmbrown

The guestbook.handler code on page 141 doesn’t follow from the previous guestbook.handler code on page 62. Also, that code on page 141 doesn’t have the typical link to the online version of that file.

1 Like

I downloaded the code from the PragProg site and matched it up. I believe this is the right fragment of code that should be there (it’s on pages 142-3 from the last edition I downloaded from the site ~Aug 2022).

(mount/defstate app-routes
  :start
  (ring/ring-handler
    (ring/router
     [(home-routes)
      (service-routes)
      (websocket-routes)])
;;...