Created
November 21, 2018 12:04
-
-
Save SophieDeBenedetto/175764080437558cfaa4cce61d0000d8 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
| # lib/github_client/mock_server.ex | |
| defmodule GithubClient.MockServer do | |
| use GenServer | |
| alias GithubClient.MockServer.GithubApiMockController | |
| def init(args) do | |
| {:ok, args} | |
| end | |
| def start_link(_) do | |
| Plug.Adapters.Cowboy.http(GithubApiMockController, [], port: 8081) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment