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-- |
33 | 1 |
CalipelWeb::Application.routes.draw do |
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 | 11 |
resources :imports, only: [] do |
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 | 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 | 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 | 22 |
|
68 | 23 |
resources :results, only: :index do |
24 |
collection do |
|
111 | 25 |
get "configuration/:id", action: :configuration_results, as: 'configuration' |
68 | 26 |
end |
27 |
end |
|
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 | 33 |
resources :tags, only: [:index, :show] |
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 | 43 |
end |