Skip to content

Commit d60e044

Browse files
committed
release
1 parent 796fd27 commit d60e044

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/word_keeper/auth.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"https://api.twitter.com/oauth/authorize"
1313
:hmac-sha1))
1414

15-
;;(defn request-token [] (oauth/request-token consumer "http://word-keeper.clojurecup.com/signin"))
16-
(defn request-token [] (oauth/request-token consumer "http://127.0.0.1:8080/signin"))
15+
(defn request-token [] (oauth/request-token consumer "http://word-keeper.clojurecup.com/signin"))
16+
;;(defn request-token [] (oauth/request-token consumer "http://127.0.0.1:8080/signin"))
1717

1818
(defn authorize [token verifier]
1919
(oauth/access-token consumer token verifier))

src/word_keeper/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
(GET "/" [] action-index)
3535
(POST "/api/translations/:uid/create" [uid] #(post-translation % (Integer/parseInt uid)))
3636
(GET "/api/translations/:uid" [uid] #(flat-user-translations % uid))
37-
(GET "/api/translations/:uid/word/:word/translation/:translation/delete" [uid, word, translation] #(action-delete-user-translation % uid word translation))
37+
(GET "/api/translations/:uid/word/:word/translation/:translation/delete" [uid, word, translation]
38+
#(action-delete-user-translation % (Integer/parseInt uid) word translation))
3839
(GET "/vocabulary" [] (-> action-vocabulary auth-middleware))
3940
(GET "/signin" [] action-signin)
4041
(GET "/signout" [] action-signout)

src/word_keeper/frontend.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
:show_notice true)})))
5353

5454
(defn action-delete-user-translation [req uid word translation]
55-
; call yesql
55+
(remove-english-russian! uid word translation)
5656
{:status 301
5757
:headers {"location" "/vocabulary"}})
5858

0 commit comments

Comments
 (0)