Commit c7500534 authored by Mikko Ahlroth's avatar Mikko Ahlroth

Move HTTP API to reception

parent fe67319c
defmodule Tilastokeskus.Router do
defmodule Tilastokeskus.Reception.Router do
use Ace.HTTP.Service, port: 1971, cleartext: true
use Raxx.Logger
use Raxx.Router, [
{_, Tilastokeskus.Routes.NotFound}
{_, Tilastokeskus.Reception.Routes.NotFound}
]
end
defmodule Tilastokeskus.Routes.NotFound do
defmodule Tilastokeskus.Reception.Routes.NotFound do
use Raxx.Server
@impl Raxx.Server
......
......@@ -11,7 +11,7 @@ defmodule Tilastokeskus.Application do
# List all child processes to be supervised
children = [
{Tilastokeskus.Archive.Repo, []},
{Tilastokeskus.Router, [port: port]}
{Tilastokeskus.Reception.Router, [port: port]}
]
# See https://hexdocs.pm/elixir/Supervisor.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment