Last active
December 15, 2015 12:44
-
-
Save johnhamelink/37d93d5439d43bd28d51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule TestMaruProject.API do | |
| use Maru.Router | |
| if Mix.env == :dev do | |
| plug MaruSwagger, at: "/swagger", pretty: true | |
| end | |
| mount TestMaruProject.API.V2.Base | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule TestMaruProject.API.V2.Base do | |
| use Maru.Router | |
| version "v2" | |
| mount TestMaruProject.API.V2.Testing | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule TestMaruProject.API.V2.Testing do | |
| use Maru.Router | |
| desc "Testing" | |
| get "testing" do | |
| conn |> | |
| json(%{hello: :world}) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment