diff options
author | neodarz <neodarz@neodarz.net> | 2017-01-24 17:09:18 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-01-24 17:09:18 +0100 |
commit | 033d07a519bac03fdfd28ca15e09cc287e80fd14 (patch) | |
tree | d623a1806c64ad84d7c88b0762ae6eb26ed14ce0 /web/router.ex | |
download | the_transcriber_backend-033d07a519bac03fdfd28ca15e09cc287e80fd14.tar.xz the_transcriber_backend-033d07a519bac03fdfd28ca15e09cc287e80fd14.zip |
Initial commit with non-functional pieces of code about file upload
Diffstat (limited to '')
-rw-r--r-- | web/router.ex | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/web/router.ex b/web/router.ex new file mode 100644 index 0000000..453b1f7 --- /dev/null +++ b/web/router.ex @@ -0,0 +1,27 @@ +defmodule TheTranscriberBackend.Router do + use TheTranscriberBackend.Web, :router + + pipeline :browser do + plug :accepts, ["html"] + plug :fetch_session + plug :fetch_flash + plug :protect_from_forgery + plug :put_secure_browser_headers + end + + pipeline :api do + plug :accepts, ["json"] + end + + scope "/", TheTranscriberBackend do + pipe_through :browser # Use the default browser stack + + get "/", PageController, :index + resources "/audio_file", AudioFileController + end + + # Other scopes may use custom stacks. + # scope "/api", TheTranscriberBackend do + # pipe_through :api + # end +end |