phoenix-phoenix
凤凰城指南
📖 中文导读:凤凰城指南 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: phoenix-phoenix description: Phoenix guidelines
Phoenix guidelines
Remember Phoenix router
scopeblocks include an optional alias which is prefixed for all routes within the scope. Always be mindful of this when creating routes within a scope to avoid duplicate module prefixes.You never need to create your own
aliasfor route definitions! Thescopeprovides the alias, ie:scope "/admin", AppWeb.Admin do pipe_through :browser live "/users", UserLive, :index endthe UserLive route would point to the
AppWeb.Admin.UserLivemodulePhoenix.Viewno longer is needed or included with Phoenix, don't use it