Last active
December 23, 2015 09:09
-
-
Save Zapotek/6612310 to your computer and use it in GitHub Desktop.
Scoped Arachni WebUI routes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
Copyright 2010-2012 Tasos Laskos <tasos.laskos@gmail.com> | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
=end | |
ArachniWebui::Application.routes.draw do | |
scope 'arachni' do | |
resources :settings | |
resources :notifications, only: [:mark_all_read, :destroy] do | |
patch :mark_read, on: :collection | |
end | |
resources :dispatchers do | |
patch :make_default, on: :member | |
patch :share, on: :member | |
end | |
scope 'scans' do | |
resources :scan_groups, path: 'groups', | |
only: [ :new, :edit, :create, :update, :destroy ] | |
end | |
resources :scans, except: [:edit] do | |
resources :comments | |
resources :issues, only: [ :index, :show, :update ] do | |
resources :comments | |
end | |
post :repeat, on: :member | |
patch :update_memberships, on: :member | |
patch :share, on: :member | |
patch :pause, on: :member | |
patch :resume, on: :member | |
patch :abort, on: :member | |
patch :pause, on: :collection, to: :pause_all | |
patch :resume, on: :collection, to: :resume_all | |
patch :abort, on: :collection, to: :abort_all | |
get :new_revision, on: :member | |
get :report, on: :member | |
get :comments, on: :member | |
get :errors, on: :member | |
get :count, on: :collection | |
end | |
resources :profiles do | |
patch :make_default, on: :member | |
patch :share, on: :member | |
get :copy, on: :member | |
end | |
get '/navigation', :to => 'home#navigation' | |
get '/welcome', :to => 'home#welcome' | |
root to: 'home#index' | |
devise_for :users, :skip => [:registrations], path_prefix: 'arachni/d' | |
as :user do | |
get 'users/edit' => 'devise/registrations#edit', as: 'edit_user_registration' | |
patch 'users' => 'devise/registrations#update', as: 'user_registration' | |
end | |
resources :users | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment