Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Feb 23, 2016
1 parent bd1cc6d commit 53a3c11
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,16 @@ def check_authorization

get %r{^/?([-_\.a-zA-Z0-9]+)?/modules} do |base|
@username = check_authorization
hieracles_config = prepare_config(base)
erb :modules
end

get %r{^/?([-_\.a-zA-Z0-9]+)?/resources} do |base|
@username = check_authorization
hieracles_config = prepare_config(base)
erb :resources
end

get %r{^/?([-_\.a-zA-Z0-9]+)?/user} do |base|
@username = check_authorization
hieracles_config = prepare_config(base)
if session[:access_token]
@userinfo = get_userinfo
else
Expand All @@ -161,7 +158,6 @@ def check_authorization

get %r{^/([-_\.a-zA-Z0-9]+)$} do |base|
@username = get_username
hieracles_config = prepare_config(base)
erb :home
end

Expand Down

0 comments on commit 53a3c11

Please sign in to comment.