Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

white space

  • Loading branch information...
commit 514548a757373d76bcba2c8d201c17f08f3a249c 1 parent 095a8d1
@dje authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  jellyfish.erl
View
3  jellyfish.erl
@@ -14,10 +14,13 @@ route_rest(Req) ->
handle_r(Req:get(method), Req:resource([lowercase, urldecode]), Req).
handle_r('GET', [], Req) -> Req:file("index.html");
+
handle_r('POST', ["deploy"], Req) ->
Req:ok([{"Content-Type", "text/plain"}], util:rand_hex(16));
+
handle_r('GET', ["deploy", Id], Req) ->
Req:ok([{"Content-Type", "text/plain"}], "~s", [Id]);
+
handle_r(_, _, Req) ->
Req:ok([{"Content-Type", "text/plain"}], "Page not found.").
Please sign in to comment.
Something went wrong with that request. Please try again.