summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/application.rb b/application.rb
new file mode 100644
index 0000000..a33cf11
--- /dev/null
+++ b/application.rb
@@ -0,0 +1,37 @@
+#configure :production, :development do
+configure :development do
+ $logger = Logger.new(STDOUT)
+ enable :reloader
+end
+
+error do
+ @error = request.env['sinatra.error']
+ haml :error
+end
+
+not_found do
+ redirect to('/')
+end
+
+get '/' do
+ haml :main
+end
+
+get '/music/?' do
+ @ids = File.read("./bandcamp.txt").split
+ haml :music
+end
+
+get '/video' do
+ @youtube = File.read("./youtube.txt").split
+ @vimeo = File.read("./vimeo.txt").split
+ haml :video
+end
+
+get '/pics' do
+ haml :pics
+end
+
+get '/merch' do
+ haml :merch
+end