 (defn response-template [status data]
   (ok {:status status :data data}))
 
+(defn fibo
+  ([]
+   (fibo 10 [1 0]))
+  ([t]
+   (fibo t [1 0]))
+  ([t fibr]
+   (let [n (- (count fibr) 1)]
+     (if (= t n)
+       {:steps t :fibo-array fibr :fibo-result (first fibr)}
+       (recur t (apply vector (+ (first fibr) (second fibr)) fibr))))))
+
+(defn golden-spiral
+  ([]
+   (golden-spiral 10))
+  ([t]
+   (map (fn[x] {:x x :y x}) (-> (fibo t) :fibo-array))))
+
 (s/defschema god
   {:name s/Str
    :symbol s/Str

      (wrap-cors :access-control-allow-origin [#"http://localhost:3000"]
                  :access-control-allow-methods [:get :put :post :delete])))

(run-server (app) {:port (:port @config)})


#_(defnroutes app-routes
   (GET "/" req
     (resp/file-response "index.html" {:root "resources/public"}))
   (GET "/list-of-gods" req
     (resp/file-response "list.html" {:root "resources/public"}))
   (GET "/app-version" req
     (str "Hello World v" (:app-version req)))
   (GET "/pdf" req
     (mapify-gods (-> @config :list-of-gods)))
   (route/resources "/")
   (route/not-found
    (resp/response {:message "Page not found 404"})))

;;handler function to handle all incoming requests 

   :gender (s/enum :male :female)
   :offspring s/Str
   :greek-equivalent s/Str})

(defn mapify-gods
  [pdf]
