Skip to content

Commit

Permalink
Clarify user message in phx.gen.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ponychicken committed Apr 21, 2024
1 parent dfb0c00 commit 810188c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mix/tasks/phx.gen.json.ex
Expand Up @@ -171,7 +171,7 @@ defmodule Mix.Tasks.Phx.Gen.Json do
else
Mix.shell().info("""
Add the resource to your :api scope in #{Mix.Phoenix.web_path(ctx_app)}/router.ex:
Add the resource to "#{Application.get_env(ctx_app, :generators)[:api_prefix] || "/api"}" scope in #{Mix.Phoenix.web_path(ctx_app)}/router.ex:
resources "/#{schema.plural}", #{inspect(schema.alias)}Controller, except: [:new, :edit]
""")
Expand Down

0 comments on commit 810188c

Please sign in to comment.