Igniter.Libs.Phoenix.web_module/1
returns wrong name in Umbrella apps
#219
Labels
bug
Something isn't working
I noticed Igniter can't find routers in umbrella apps due to generating wrong web module names. Take for instance an umbrella project generated as:
Igniter.Libs.Phoenix.web_module/1
returnsCmsAdminWebWeb
(duplicateWeb
).I'm aware there's no reliable way to find the web module name but an idea to fix it is to traverse the existing module looking for
use MOD, :router
, ie: a web-ish module using:router
which seems to be reliable enough to determine the web module prefix, otherwise if not found fallbacks toproject prefix <> "Web"
.Wdyt?
The text was updated successfully, but these errors were encountered: