rename animated gif route url

This commit is contained in:
Gered 2014-04-06 12:23:52 -04:00
parent e50ec3e72b
commit fd189ee491
2 changed files with 3 additions and 3 deletions

View file

@ -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">

View file

@ -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)))