diff --git a/app.rb b/app.rb index 254fe3f..9f7d7bf 100644 --- a/app.rb +++ b/app.rb @@ -4,5 +4,16 @@ class App < Sinatra::Base erb :index end + get '/hello' do + erb :hello + end + + get '/goodbye' do + erb :goodbye + end + + get '/date' do + erb :date + end end diff --git a/views/date.erb b/views/date.erb new file mode 100644 index 0000000..7fa9753 --- /dev/null +++ b/views/date.erb @@ -0,0 +1 @@ +The date is <%= Date.today.strftime("%A, %B %d, %Y") %> diff --git a/views/goodbye.erb b/views/goodbye.erb new file mode 100644 index 0000000..70707ac --- /dev/null +++ b/views/goodbye.erb @@ -0,0 +1,4 @@ + + +