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
|
(ns ireadit.routes.home
|
||||||
(:require [ireadit.layout :as layout]
|
(:require [ireadit.layout :as layout]
|
||||||
|
[ireadit.views.form :refer :all]
|
||||||
[compojure.core :refer [defroutes GET]]
|
[compojure.core :refer [defroutes GET]]
|
||||||
[ring.util.http-response :as response]
|
[ring.util.http-response :as response]
|
||||||
[clojure.java.io :as io]))
|
[clojure.java.io :as io]))
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
{:swagger {:ui "/swagger-ui"
|
{:swagger {:ui "/swagger-ui"
|
||||||
:spec "/swagger.json"
|
:spec "/swagger.json"
|
||||||
:data {:info {:version "1.0.0"
|
:data {:info {:version "1.0.0"
|
||||||
:title "Sample API"
|
:title "I Read It API"
|
||||||
:description "Sample Services"}}}}
|
:description "Meme transcription services"}}}}
|
||||||
|
|
||||||
(context "/api" []
|
(context "/api" []
|
||||||
:tags ["tesseractor"]
|
:tags ["tesseractor"]
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
{:http-xhrio {:method :post
|
{:http-xhrio {:method :post
|
||||||
:uri uri
|
:uri uri
|
||||||
:format (ajax/json-request-format)
|
:format (ajax/json-request-format)
|
||||||
:response-format (ajax/json-response-format {:keywords? true})
|
:response-format (ajax/json-response-format)
|
||||||
:on-success [:set-transcription]
|
:on-success [:set-transcription]
|
||||||
:on-failure [:bad-transcription]}})))
|
:on-failure [:bad-transcription]}})))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue