Sha256: b48c943f694bd69f75596622c7dcbea7e3013fe757c71dea5bab73ddbc6acac0

Contents?: true

Size: 1011 Bytes

Versions: 6

Compression:

Stored size: 1011 Bytes

Contents

EasyML::Engine.routes.draw do
  root to: "models#index"
  get "healthcheck", to: "health#up"

  mount Zhong::Web, at: "/zhong"
  mount Resque::Server.new, at: "/resque"

  # Predictions API
  resources :predictions, only: [:create]

  resources :models, as: :easy_ml_models do
    member do
      post :train
      get :retraining_runs, to: "retraining_runs#index"
    end
    resources :deploys, only: [:create]
    get "new", on: :collection, as: "new"
  end

  resources :retraining_runs, only: [:show]

  # Datasources
  resources :datasources, as: :easy_ml_datasources do
    member do
      post :sync
    end
  end

  # Datasets
  resources :datasets, as: :easy_ml_datasets do
    member do
      post :refresh
    end
  end

  # Transformations
  resources :transformations, only: %i[index new edit], as: :easy_ml_transformations

  # Settings
  resources :settings, only: [:index] do
    patch :update, on: :collection
  end

  # Columns
  resources :columns, only: [:update], as: :easy_ml_columns
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc33 config/routes.rb
easy_ml-0.2.0.pre.rc32 config/routes.rb
easy_ml-0.2.0.pre.rc31 config/routes.rb
easy_ml-0.2.0.pre.rc30 config/routes.rb
easy_ml-0.2.0.pre.rc29 config/routes.rb
easy_ml-0.2.0.pre.rc28 config/routes.rb