Skip to content

Commit

Permalink
EST 8047
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 24, 2024
1 parent 9faccb5 commit 3aa08ad
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 32 deletions.
2 changes: 1 addition & 1 deletion lib/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule CA do

def start(_type, _args) do
:logger.add_handlers(:ca)
children = [ { Bandit, scheme: :http, port: 8047, plug: CA.HTTP } ]
children = [ { Bandit, scheme: :http, port: 8047, plug: CA.EST } ]
CA.CMP.start ; CA.CMC.start ; CA.TSP.start ; CA.OCSP.start
Supervisor.start_link(children, strategy: :one_for_one, name: CA.Supervisor)
end
Expand Down
21 changes: 0 additions & 21 deletions lib/services/ca.ex

This file was deleted.

4 changes: 2 additions & 2 deletions lib/services/http/delete.ex
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}))

Check warning on line 5 in lib/services/http/delete.ex

View workflow job for this annotation

GitHub Actions / build

CA.EST.encode/1 is undefined (module CA.EST is not available or is yet to be defined)
end
end
4 changes: 2 additions & 2 deletions lib/services/http/get.ex
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}]))

Check warning on line 5 in lib/services/http/get.ex

View workflow job for this annotation

GitHub Actions / build

CA.EST.encode/1 is undefined (module CA.EST is not available or is yet to be defined)
end
end
4 changes: 2 additions & 2 deletions lib/services/http/patch.ex
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}))

Check warning on line 5 in lib/services/http/patch.ex

View workflow job for this annotation

GitHub Actions / build

CA.EST.encode/1 is undefined (module CA.EST is not available or is yet to be defined)
end
end
4 changes: 2 additions & 2 deletions lib/services/http/post.ex
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}))

Check warning on line 5 in lib/services/http/post.ex

View workflow job for this annotation

GitHub Actions / build

CA.EST.encode/1 is undefined (module CA.EST is not available or is yet to be defined)
end
end
4 changes: 2 additions & 2 deletions lib/services/http/put.ex
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}))

Check warning on line 5 in lib/services/http/put.ex

View workflow job for this annotation

GitHub Actions / build

CA.EST.encode/1 is undefined (module CA.EST is not available or is yet to be defined)
end
end

0 comments on commit 3aa08ad

Please sign in to comment.