diff options
Diffstat (limited to 'lib/matrix_app_service/phoenix/router.ex')
-rw-r--r-- | lib/matrix_app_service/phoenix/router.ex | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/matrix_app_service/phoenix/router.ex b/lib/matrix_app_service/phoenix/router.ex new file mode 100644 index 0000000..715464b --- /dev/null +++ b/lib/matrix_app_service/phoenix/router.ex @@ -0,0 +1,29 @@ +defmodule MatrixAppService.Phoenix.Router do + + defmacro routes() do + quote do + pipeline :matrix_api do + plug :accepts, ["json"] + end + + scope "/matrix", MatrixAppService.Phoenix.V1 do + pipe_through :matrix_api + + # scope "/v1", V1 do + put "/transactions/:txn_id", TransactionController, :create + + get "/users/:user_id", UserController, :show + get "/rooms/:room_alias", RoomController, :show + + # scope "/thirdparty", ThirdParty do + 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 + end +end |