Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # v1
  2. defmodule MyApp.ThingController do
  3. use MyApp.Web, :controller
  4.  
  5. plug :action
  6.  
  7. def an_action(conn, _params) do
  8. text conn, "V1"
  9. end
  10. end
  11.  
  12. # v2
  13. defmodule MyApp.ThingController do
  14. use MyApp.Web, :controller
  15.  
  16. plug :action
  17.  
  18. def an_action(conn, _params) do
  19. text conn, "V1"
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement