You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
453 B
Ruby
46 lines
453 B
Ruby
2 years ago
|
require 'sinatra'
|
||
|
require 'erb'
|
||
|
|
||
|
get '/' do
|
||
|
erb :greetpage
|
||
|
end
|
||
|
|
||
|
get '/home' do
|
||
|
erb :homepage
|
||
|
end
|
||
|
|
||
|
get '/media' do
|
||
|
erb :folderpage
|
||
|
end
|
||
|
|
||
|
get '/media/*' do
|
||
|
erb :blogpage
|
||
|
end
|
||
|
|
||
|
get '/technology' do
|
||
|
erb :folderpage
|
||
|
end
|
||
|
|
||
|
get '/technology/*' do
|
||
|
erb :blogpage
|
||
|
end
|
||
|
|
||
|
get '/news' do
|
||
|
erb :folderpage
|
||
|
end
|
||
|
|
||
|
get '/news/*' do
|
||
|
erb :blogpage
|
||
|
end
|
||
|
|
||
|
get '/archive' do
|
||
|
erb :archivepage
|
||
|
end
|
||
|
|
||
|
get '/about' do
|
||
|
erb :aboutpage
|
||
|
end
|
||
|
|
||
|
get '/contact' do
|
||
|
erb :contactpage
|
||
|
end
|