web/config/routes.rb
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 19 Nov 2015 09:40:33 +0000
changeset 310 c01892c16c71
parent 234 b04a0f3c3aaf
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
9abd986fa635 init rails project
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     1
CalipelWeb::Application.routes.draw do
9abd986fa635 init rails project
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     2
40
856c1bc7f3b7 init bootstrap and stuff
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 33
diff changeset
     3
  root 'index#index'
45
0d84fd72f51c add controllers as theres no tomorrow
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 40
diff changeset
     4
  get "index/index", as: 'index', path: 'index'
0d84fd72f51c add controllers as theres no tomorrow
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 40
diff changeset
     5
  get "pages/about", as: 'about', path: 'about'
47
80f52792325e lets start with settings pages
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 45
diff changeset
     6
  get "settings/index", as: 'settings'
55
79679c96c6b2 ugly commit but testing something
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 48
diff changeset
     7
  get "settings" => 'settings#index'
45
0d84fd72f51c add controllers as theres no tomorrow
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 40
diff changeset
     8
234
b04a0f3c3aaf Revert ArchiveController, it is actually used for serving json file
Marcel Hlopko <marcel@hlopko.com>
parents: 230
diff changeset
     9
  resources :archive, only: :show
b04a0f3c3aaf Revert ArchiveController, it is actually used for serving json file
Marcel Hlopko <marcel@hlopko.com>
parents: 230
diff changeset
    10
67
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    11
  resources :imports, only: [] do
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    12
    root action: :show_text_import
65
a37ce193f555 add basic import support (text, file, push via POST)
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 64
diff changeset
    13
    collection do
67
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    14
      get "text-import", action: :show_text_import, as: 'new_text'
65
a37ce193f555 add basic import support (text, file, push via POST)
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 64
diff changeset
    15
      post "text-import", action: :text_import, as: 'text'
67
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    16
      get "file-import", action: :show_file_import, as: 'new_file'
65
a37ce193f555 add basic import support (text, file, push via POST)
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 64
diff changeset
    17
      post "file-import", action: :file_import, as: 'file'
93
be975ce27b80 add new imports page, althrough blank
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 91
diff changeset
    18
      get "post-import", action: :show_post_import, as: 'new_post'
110
02126b7e1cbb imports fixed and nicely working
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 106
diff changeset
    19
      post "push-import", action: :push_import, as: 'push'
65
a37ce193f555 add basic import support (text, file, push via POST)
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 64
diff changeset
    20
    end
a37ce193f555 add basic import support (text, file, push via POST)
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 64
diff changeset
    21
  end
33
9abd986fa635 init rails project
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    22
68
ea16cf625333 add results page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 67
diff changeset
    23
  resources :results, only: :index do
ea16cf625333 add results page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 67
diff changeset
    24
    collection do
111
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 110
diff changeset
    25
      get "configuration/:id", action: :configuration_results, as: 'configuration'
68
ea16cf625333 add results page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 67
diff changeset
    26
    end
ea16cf625333 add results page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 67
diff changeset
    27
  end
ea16cf625333 add results page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 67
diff changeset
    28
91
d430a8ac253d comparison page kinda works
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 68
diff changeset
    29
  resources :compare, only: :index do
133
bef72dea1e7e Initial Rickshaw experiments
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 111
diff changeset
    30
    get "filter", on: :collection
91
d430a8ac253d comparison page kinda works
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 68
diff changeset
    31
  end
d430a8ac253d comparison page kinda works
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 68
diff changeset
    32
164
120a4f1e25c0 introduce tags
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 133
diff changeset
    33
  resources :tags, only: [:index, :show]
120a4f1e25c0 introduce tags
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 133
diff changeset
    34
47
80f52792325e lets start with settings pages
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 45
diff changeset
    35
  namespace "settings" do
222
c98af04e13ce Archive uploaded benchamrk data on a filesystem. Add an easy access to download archived data.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 164
diff changeset
    36
    resources :languages, except: [:new]
c98af04e13ce Archive uploaded benchamrk data on a filesystem. Add an easy access to download archived data.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 164
diff changeset
    37
    resources :runtimes, except: [:new]
c98af04e13ce Archive uploaded benchamrk data on a filesystem. Add an easy access to download archived data.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 164
diff changeset
    38
    resources :operating_systems, except: [:new]
c98af04e13ce Archive uploaded benchamrk data on a filesystem. Add an easy access to download archived data.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 164
diff changeset
    39
    resources :benchmark_infos, except: [:new]
c98af04e13ce Archive uploaded benchamrk data on a filesystem. Add an easy access to download archived data.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 164
diff changeset
    40
    resources :benchmark_configurations, except: [:new]
47
80f52792325e lets start with settings pages
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 45
diff changeset
    41
  end
80f52792325e lets start with settings pages
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 45
diff changeset
    42
33
9abd986fa635 init rails project
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    43
end