BeaconCMS/beacon

Route and Resource Loading: Add `--path` to `beacon.install` generator

leandrocp opened this issue · 4 comments

The beacon.install mix task accepts a --site option which generates the following scope in the router:

  scope "/" do
    pipe_through :browser
    beacon_site "/my_site", site: :my_site
  end

We need to add a new optional --path option that allows changing the first argument of beacon_site, example:

mix beacon.install --site my_site --path /

Would generate:

  scope "/" do
    pipe_through :browser
    beacon_site "/", site: :my_site
  end

If not specified it takes the value from --site.

a8t commented

Still looking for help on this?

Still looking for help on this?

Yep. A PR is welcome!

Closed by #387

/cc @AZholtkevych