Skip to content

Instantly share code, notes, and snippets.

@edwinallenz
Created May 25, 2017 04:29
Show Gist options
  • Select an option

  • Save edwinallenz/3b37cef094b1ff59f13a80ee179da31e to your computer and use it in GitHub Desktop.

Select an option

Save edwinallenz/3b37cef094b1ff59f13a80ee179da31e to your computer and use it in GitHub Desktop.
#/slack_jira_comments/web/router.ex
defmodule SlackJiraComments.Router do
use SlackJiraComments.Web, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/", SlackJiraComments do
pipe_through :api
post "/threads", ThreadController, :create
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment