From 033d07a519bac03fdfd28ca15e09cc287e80fd14 Mon Sep 17 00:00:00 2001 From: neodarz Date: Tue, 24 Jan 2017 17:09:18 +0100 Subject: Initial commit with non-functional pieces of code about file upload --- web/router.ex | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 web/router.ex (limited to 'web/router.ex') 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 -- cgit v1.2.1