Skip to content

Commit

Permalink
Change names for worker status *_path helper
Browse files Browse the repository at this point in the history
Before:
  worker__status GET    /worker/_status
  build__workerstatus GET    /build/_workerstatus

After:
  worker_status GET    /worker/_status
  build_workerstatus GET    /build/_workerstatus
  • Loading branch information
bgeuken committed Sep 8, 2018
1 parent 1f56cfd commit 9dce9c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/config/routes.rb
Expand Up @@ -433,8 +433,8 @@ def self.public_or_about_path?(request)
end

### /worker
get 'worker/_status' => 'worker/status#index'
get 'build/_workerstatus' => 'worker/status#index' # FIXME3.0: drop this compat route
get 'worker/_status' => 'worker/status#index', as: :worker_status
get 'build/_workerstatus' => 'worker/status#index', as: :build_workerstatus # FIXME3.0: drop this compat route
get 'worker/:worker' => 'worker/capability#show'
post 'worker' => 'worker/command#run'

Expand Down

0 comments on commit 9dce9c8

Please sign in to comment.