Rails.application.routes.draw do
  apipie
  devise_for :admin_users, ActiveAdmin::Devise.config
  ActiveAdmin.routes(self)

  namespace :api do
    get "swagger",              to: "swagger#index"
    get "events",               to: "events#index"
    get "members",              to: "members#index"
    get "stores",               to: "stores#index"
    get "wiki/pages",           to: "wiki#index"
    get "rss/blog",             to: "rss#blog"
    get "rss/releases",         to: "rss#releases"
    get "rss/howtos",           to: "rss#howtos"
  end

  # Utolsó sor: a host route-jai nyernek, a katalógus-útvonalakat
  # (/api/software*, /api/builds*, /api/image, /api/download, /build/*, /file/*)
  # az engine adja.
  mount WarpEngine::Engine => "/"
end
