Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

white space

  • Loading branch information...
commit 514548a757373d76bcba2c8d201c17f08f3a249c 1 parent 095a8d1
Darrin Eden authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  jellyfish.erl
3  jellyfish.erl
@@ -14,10 +14,13 @@ route_rest(Req) ->
14 14 handle_r(Req:get(method), Req:resource([lowercase, urldecode]), Req).
15 15
16 16 handle_r('GET', [], Req) -> Req:file("index.html");
  17 +
17 18 handle_r('POST', ["deploy"], Req) ->
18 19 Req:ok([{"Content-Type", "text/plain"}], util:rand_hex(16));
  20 +
19 21 handle_r('GET', ["deploy", Id], Req) ->
20 22 Req:ok([{"Content-Type", "text/plain"}], "~s", [Id]);
  23 +
21 24 handle_r(_, _, Req) ->
22 25 Req:ok([{"Content-Type", "text/plain"}], "Page not found.").
23 26

0 comments on commit 514548a

Please sign in to comment.
Something went wrong with that request. Please try again.