Minor tidy up; still not working as I would like.
This commit is contained in:
		
							parent
							
								
									5a572b10af
								
							
						
					
					
						commit
						7d54c2d7a5
					
				|  | @ -1,5 +1,6 @@ | |||
| (ns ireadit.routes.home | ||||
|   (:require [ireadit.layout :as layout] | ||||
|             [ireadit.views.form :refer :all] | ||||
|             [compojure.core :refer [defroutes GET]] | ||||
|             [ring.util.http-response :as response] | ||||
|             [clojure.java.io :as io])) | ||||
|  |  | |||
|  | @ -10,8 +10,8 @@ | |||
|    {:swagger {:ui "/swagger-ui" | ||||
|               :spec "/swagger.json" | ||||
|               :data {:info {:version "1.0.0" | ||||
|                             :title "Sample API" | ||||
|                             :description "Sample Services"}}}} | ||||
|                             :title "I Read It API" | ||||
|                             :description "Meme transcription services"}}}} | ||||
| 
 | ||||
|    (context "/api" [] | ||||
|             :tags ["tesseractor"] | ||||
|  |  | |||
|  | @ -43,7 +43,7 @@ | |||
|      {:http-xhrio {:method          :post | ||||
|                    :uri             uri | ||||
|                    :format          (ajax/json-request-format) | ||||
|                    :response-format (ajax/json-response-format {:keywords? true}) | ||||
|                    :response-format (ajax/json-response-format) | ||||
|                    :on-success      [:set-transcription] | ||||
|                    :on-failure      [:bad-transcription]}}))) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue