-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.rb
More file actions
42 lines (29 loc) · 892 Bytes
/
server.rb
File metadata and controls
42 lines (29 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'sinatra'
#Why/how do i add visuals to this page?
# get '/' do #get methods takes two argumetns string: website
# p "#{Time.now}" #block of ruby code executed when
# end
# get '/' do
# send_file File.join(settings.public_folder, 'new_home.html')
# end
get '/' do
send_file File.join(settings.public_folder, 'index.html')
end
get '/nometa' do
send_file File.join(settings.public_folder, 'noMetaMaskInstalled.html')
end
# get '/kimsForSale' do
# send_file File.join(settings.public_folder, 'kimsForSale.html')
# end
# get '/search' do
# send_file File.join(settings.public_folder, 'searchForKim.html')
# end
get '/test' do
send_file File.join(settings.public_folder, 'test.html')
end
get '/myKims' do
send_file File.join(settings.public_folder, 'mykims.html')
end
get '/marketplace' do
send_file File.join(settings.public_folder, 'marketplace.html')
end