Sha256: a432765b987ea4f721a14f57723a0d43333242c12c9022d85438f467897cc514

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

AnnotatorStore::Engine.routes.draw do

  # Root path
  root 'pages#index', defaults: { format: :json }

  # Search
  match 'search', to: 'pages#search', via: [:get], defaults: { format: :json }, constraints: { format: :json }
  match 'search', to: 'annotations#options', via: [:options], defaults: { format: :json }, constraints: { format: :json }

  # Annotations Endpoint
  resources :annotations, only: [:create, :show, :update, :destroy], defaults: { format: :json }, constraints: { format: :json } do
    match '/', to: 'annotations#options', via: [:options], on: :collection
    match '/', to: 'annotations#options', via: [:options], on: :member
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
annotator_store-1.0.0.pre config/routes.rb