rename animated gif route url
This commit is contained in:
parent
e50ec3e72b
commit
fd189ee491
|
@ -1,4 +1,4 @@
|
|||
<form class="form-horizontal api-form" role="form" id="gifForm" data-api-endpoint="/animated">
|
||||
<form class="form-horizontal api-form" role="form" id="gifForm" data-api-endpoint="/animated-gif">
|
||||
<fieldset>
|
||||
|
||||
<div class="form-group">
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
(fn [ctx]
|
||||
(:error ctx)))
|
||||
|
||||
(defresource render-animated-image [{:keys [url width color] :as params}]
|
||||
(defresource render-animated-gif [{:keys [url width color] :as params}]
|
||||
:available-media-types ["text/html"]
|
||||
:malformed?
|
||||
(fn [ctx]
|
||||
|
@ -75,4 +75,4 @@
|
|||
|
||||
(register-routes api-image-routes
|
||||
(ANY "/api/image" {params :params} (render-image params))
|
||||
(ANY "/api/animated" {params :params} (render-animated-image params)))
|
||||
(ANY "/api/animated-gif" {params :params} (render-animated-gif params)))
|
Reference in a new issue