Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated to add remarks to logged issues * Added spec [Issue #209]
- Loading branch information
Showing
4 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
require 'sinatra' | ||
require File.dirname( __FILE__ ) + '/../../../modules/module_server' | ||
|
||
get '/*' do | ||
# we add the request path and random number to avoid | ||
# being seen as a custom 404 handler | ||
env['REQUEST_PATH'] + 'same crap' + rand( 9 ).to_s | ||
framework.modules[:common_files].filenames.each do |name| | ||
get( "/#{name}" ) { 'stuff' } | ||
end | ||
|
||
get( '/' ) {} |