Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

618 B
Raw Blame
Rails.application.routes.draw do
  scope "projects/:project_id", as: "project" do
    resources :calendars,
              controller: "calendar/calendars",
              only: %i[index destroy],
              as: :calendars do
      collection do
        get "menu" => "calendar/menus#show"
      end
      get "/new" => "calendar/calendars#show", on: :collection, as: "new"
      get "/ical" => "calendar/ical#show", on: :member, as: "ical"
      get "(/*state)" => "calendar/calendars#show", on: :member, as: ""
    end
  end

  resources :calendars, only: %i[index new create], controller: "calendar/calendars"
end