diff options
Diffstat (limited to 'lib/matrix_app_service/phoenix/router.ex')
-rw-r--r-- | lib/matrix_app_service/phoenix/router.ex | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/matrix_app_service/phoenix/router.ex b/lib/matrix_app_service/phoenix/router.ex deleted file mode 100644 index b3e6c8f..0000000 --- a/lib/matrix_app_service/phoenix/router.ex +++ /dev/null @@ -1,27 +0,0 @@ -defmodule MatrixAppService.Phoenix.Router do - defmacro routes() do - quote do - pipeline :matrix_api do - plug :accepts, ["json"] - plug MatrixAppServiceWeb.AuthPlug - end - - path = Application.compile_env(:matrix_app_service, :path, "/") - - scope path, MatrixAppServiceWeb.V1 do - pipe_through :matrix_api - - put "/transactions/:txn_id", TransactionController, :create - - get "/users/:user_id", UserController, :show - get "/rooms/:room_alias", RoomController, :show - - get "/thirdparty/protocol/:protocol", ThirdPartyController, :show - get "/thirdparty/user/:protocol", ThirdPartyController, :show - get "/thirdparty/location/:protocol", ThirdPartyController, :show - get "/thirdparty/location", ThirdPartyController, :show - get "/thirdparty/user", ThirdPartyController, :show - end - end - end -end |