Skip to content

Commit c8a8c46

Browse files
committed
chore: update phoenix configuration
`:namespace` config is deprecated, moved to `:formats` configuration Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
1 parent 1f137ef commit c8a8c46

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

backend/lib/edgehog_web.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#
21
# This file is part of Edgehog.
32
#
4-
# Copyright 2021-2023 SECO Mind Srl
3+
# Copyright 2021-2026 SECO Mind Srl
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");
76
# you may not use this file except in compliance with the License.
@@ -16,7 +15,6 @@
1615
# limitations under the License.
1716
#
1817
# SPDX-License-Identifier: Apache-2.0
19-
#
2018

2119
defmodule EdgehogWeb do
2220
@moduledoc """
@@ -41,7 +39,7 @@ defmodule EdgehogWeb do
4139
def controller do
4240
quote do
4341
use Gettext, backend: EdgehogWeb.Gettext
44-
use Phoenix.Controller, namespace: EdgehogWeb
42+
use Phoenix.Controller, formats: [json: "View"]
4543

4644
import Plug.Conn
4745

0 commit comments

Comments
 (0)