   [request-handler jruby-service get-code-content-fn]
   (let [environment-class-handler (environment-class-handler jruby-service)
         static-file-content-handler (static-file-content-request-handler get-code-content-fn)]
-    (comidi/routes
+    (let [ruby-routes (comidi/routes
      (comidi/GET ["/node/" [#".*" :rest]] request
                  (request-handler request))
      (comidi/GET ["/file_content/" [#".*" :rest]] request

     (comidi/GET "/environments" request
                 (request-handler request))
     (comidi/GET ["/status/" [#".*" :rest]] request
                 (request-handler request))

     (comidi/GET ["/environment_classes" [#".*" :rest]] request
                 (environment-class-handler request))
     (comidi/GET ["/static_file_content/" [#".*" :rest]] request
                 (static-file-content-handler request)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Lifecycle Helper Functions

  "Creates all of the web routes for the master."
  [request-handler jruby-service get-code-content-fn]
  (comidi/routes
                    (v3-routes request-handler
                               jruby-service
              get-code-content-fn)))

(schema/defn ^:always-validate
  wrap-middleware :- IFn
