Skip to content

Commit fc16ceb

Browse files
committed
parse int added
1 parent 54a70cd commit fc16ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/word_keeper/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
(defroutes routes
3434
(GET "/" [] action-index)
35-
(POST "/api/translations/:uid/create" [uid] #(post-translation % uid))
35+
(POST "/api/translations/:uid/create" [uid] #(post-translation % (Integer/parseInt uid)))
3636
(GET "/api/translations/:uid" [uid] #(flat-user-translations % uid))
3737
(GET "/vocabulary" [] (-> action-vocabulary auth-middleware))
3838
(GET "/signin" [] action-signin)

0 commit comments

Comments
 (0)