File size: 832 Bytes
def1299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Rails.application.routes.draw do
  root 'home#index'

  resources :submissions, only: [:index, :show, :create, :destroy], param: :token do
    post 'batch', to: 'submissions#batch_create', on: :collection
    get 'batch', to: 'submissions#batch_show', on: :collection
  end

  resources :languages, only: [:index, :show] do
    get 'all', to: 'languages#all', on: :collection
  end

  resources :statuses, only: [:index]

  get 'system_info', to: 'info#system_info'
  get 'config_info', to: 'info#config_info'
  get 'isolate', to: 'info#isolate'
  get 'about', to: 'info#about'
  get 'version', to: 'info#version'
  get 'license', to: 'info#license'
  get 'statistics', to: 'info#statistics'

  post 'authenticate', to: 'sessions#authenticate'
  post 'authorize', to: 'sessions#authorize'

  get 'workers', to: 'health#workers'
end