Skip to content

Commit

Permalink
Revert "[api] remove (broken) /public route"
Browse files Browse the repository at this point in the history
Rather redirect it somewhere useful
  • Loading branch information
coolo committed Dec 12, 2012
1 parent 477c69a commit 48beefa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/controllers/public_controller.rb
Expand Up @@ -5,6 +5,10 @@ class PublicController < ApplicationController
before_filter :extract_user_public
skip_before_filter :extract_user

def index
redirect_to controller: "about", action: "index"
end

def check_package_access(project, package, use_source=true)

# don't use the cache for use_source
Expand Down
1 change: 1 addition & 0 deletions src/api/config/routes.rb
Expand Up @@ -271,6 +271,7 @@
### /public

controller :public do
match 'public' => :index
match 'public/build/:project' => :build, :constraints => cons
match 'public/build/:project/:repository' => :build, :constraints => cons
match 'public/build/:project/:repository/:arch' => :build, :constraints => cons
Expand Down

0 comments on commit 48beefa

Please sign in to comment.