updates list rest api

- list no longer returns a json array
  but a json object, which contains a
  "messages" json array instead
This commit is contained in:
2021-12-17 16:23:48 +01:00
parent 5d50bb30e6
commit 8262b61085
7 changed files with 14 additions and 14 deletions

View File

@ -12,7 +12,7 @@ config :bump,
# Configures the endpoint
config :bump, BumpWeb.Endpoint,
url: [host: "localhost"],
url: [host: "0.0.0.0"],
render_errors: [view: BumpWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: Bump.PubSub,
live_view: [signing_salt: "IpqpsnNX"]

View File

@ -18,7 +18,7 @@ config :bump, Bump.Repo,
config :bump, BumpWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
http: [ip: {0, 0, 0, 0}, port: 4000],
check_origin: false,
code_reloader: true,
debug_errors: true,

View File

@ -9,7 +9,7 @@ config :bump, Bump.Repo,
username: "postgres",
password: "postgres",
database: "bump_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost",
hostname: "tower.local",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10