Sha256: 9acd028e355289c40562f34922afb8b978188b4d97a280a93918a9bf4b91128c

Contents?: true

Size: 769 Bytes

Versions: 14

Compression:

Stored size: 769 Bytes

Contents

# -*- coding: utf-8 -*-
SmalrubyEditor::Application.routes.draw do
  scope '(:locale)', locale: /en|ja/ do
    root to: 'editor#index'
  end

  match '/demo(/:filename)' => 'editor#demo',
        defaults: { filename: 'car_chase' }, via: :get

  resources :sessions, only: [:create, :destroy]
  match '/signout', to: 'sessions#destroy', via: 'delete'

  resources :users, only: [:update]

  resources :source_codes, only: [:create, :index]
  post 'source_codes/check'
  delete 'source_codes/download'
  post 'source_codes/load'
  post 'source_codes/load_local'
  post 'source_codes/load_demo'
  delete 'source_codes/write'
  post 'source_codes/run'
  post 'source_codes/to_blocks'

  get 'preferences', to: 'users#preferences'
  get 'toolbox', to: 'editor#toolbox'
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
smalruby-editor-0.3.5-x86-mingw32 config/routes.rb
smalruby-editor-0.3.5 config/routes.rb
smalruby-editor-0.3.4-x86-mingw32 config/routes.rb
smalruby-editor-0.3.4 config/routes.rb
smalruby-editor-0.3.3-x86-mingw32 config/routes.rb
smalruby-editor-0.3.3 config/routes.rb
smalruby-editor-0.3.2-x86-mingw32 config/routes.rb
smalruby-editor-0.3.2 config/routes.rb
smalruby-editor-0.3.1-x86-mingw32 config/routes.rb
smalruby-editor-0.3.1 config/routes.rb
smalruby-editor-0.3.0-x86-mingw32 config/routes.rb
smalruby-editor-0.3.0 config/routes.rb
smalruby-editor-0.2.7-x86-mingw32 config/routes.rb
smalruby-editor-0.2.7 config/routes.rb