You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
532 B

defmodule WeatherTrackerWeb.Router do
use WeatherTrackerWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", WeatherTrackerWeb do
pipe_through :api
end
# Enables the Swoosh mailbox preview in development.
#
# Note that preview only shows emails that were sent by the same
# node running the Phoenix server.
if Mix.env() == :dev do
scope "/dev" do
pipe_through [:fetch_session, :protect_from_forgery]
forward "/mailbox", Plug.Swoosh.MailboxPreview
end
end
end