Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove version from API route.

  • Loading branch information...
commit 554cb1fc98f8d52cfc898398ee874e06e01f6864 1 parent 51cfa8e
@Raynes Raynes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/refheap/views/api.clj
View
4 src/refheap/views/api.clj
@@ -30,8 +30,8 @@
(when-let [id (:id (session/get :user))]
(api/new-token id)))
-(defpage [:post "/api/v1/paste/create"] {:keys [private contents language username token]
- :or {private "false"}}
+(defpage [:post "/api/paste/create"] {:keys [private contents language username token]
+ :or {private "false"}}
(response/json
(let [user (api/validate-user username token)]
(if (string? user)
Please sign in to comment.
Something went wrong with that request. Please try again.