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:
@ -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"]
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user