-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
11 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defmodule CA.HTTP.Delete do | ||
defmodule CA.EST.Delete do | ||
import Plug.Conn | ||
def delete(conn,_,type,id,spec) do | ||
# :io.format 'DELETE/3:#{type}#{id}/#{spec}', [] | ||
send_resp(conn, 200, CA.HTTP.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
send_resp(conn, 200, CA.EST.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defmodule CA.HTTP.Get do | ||
defmodule CA.EST.Get do | ||
import Plug.Conn | ||
def get(conn,_,type,id,spec) do | ||
# :io.format 'GET/4:#{type}/#{id}/#{spec}', [] | ||
send_resp(conn, 200, CA.HTTP.encode([%{"type" => type, "id" => id, "spec" => spec}])) | ||
send_resp(conn, 200, CA.EST.encode([%{"type" => type, "id" => id, "spec" => spec}])) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defmodule CA.HTTP.Patch do | ||
defmodule CA.EST.Patch do | ||
import Plug.Conn | ||
def patch(conn,_,type,id,spec) do | ||
# :io.format 'PUT/4:#{type}#{id}/#{spec}', [] | ||
send_resp(conn, 200, CA.HTTP.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
send_resp(conn, 200, CA.EST.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defmodule CA.HTTP.Post do | ||
defmodule CA.EST.Post do | ||
import Plug.Conn | ||
def post(conn,_,type,id,spec) do | ||
# :io.format 'PUT/4:#{type}#{id}/#{spec}', [] | ||
send_resp(conn, 200, CA.HTTP.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
send_resp(conn, 200, CA.EST.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defmodule CA.HTTP.Put do | ||
defmodule CA.EST.Put do | ||
import Plug.Conn | ||
def put(conn,_,type,id,spec) do | ||
# :io.format 'PUT/4:#{type}#{id}/#{spec}', [] | ||
send_resp(conn, 200, CA.HTTP.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
send_resp(conn, 200, CA.EST.encode(%{"type" => type, "id" => id, "spec" => spec})) | ||
end | ||
end |