method | path | body |
---|---|---|
POST | /admin/sign_in | { email: "", password: "" } |
POST | /admin/elections | { name: "", cover: "", notice: "", starts_at: "", ends_at: "" } |
PUT | /admin/elections/:id | { name: "", cover: "", notice: "", starts_at: "", ends_at: "" } |
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 A.Application do | |
@moduledoc """ | |
Application GenServer. It starts all supervisors and workers. | |
""" | |
use Application | |
# See https://hexdocs.pm/elixir/Application.html | |
# for more information on OTP Applications | |
def start(_type, _args) do |