Sha256: 7f30e6e43fd96a344e60efc96be5897b45a18ce796d1b09336f53599cae1603d

Contents?: true

Size: 882 Bytes

Versions: 6

Compression:

Stored size: 882 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 :costumes, only: [:index, :create, :destroy]
  get "/smalruby/assets/:basename", to: "costumes#show"

  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

6 entries across 6 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 config/routes.rb
smalruby-editor-0.4.2-x86-mingw32 config/routes.rb
smalruby-editor-0.4.2 config/routes.rb
smalruby-editor-0.4.1 config/routes.rb
smalruby-editor-0.4.0-x86-mingw32 config/routes.rb
smalruby-editor-0.4.0 config/routes.rb