initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../endpoint'
|
||||
|
||||
require_relative '../model/pokemon'
|
||||
|
||||
module FO::Endpoint::Index
|
||||
extend FO::Endpoint
|
||||
|
||||
def self.dispatch(request, response)
|
||||
pokemon = FO::Model::Pokemon.all
|
||||
|
||||
response.template(
|
||||
'index',
|
||||
{
|
||||
pokemon: pokemon
|
||||
})
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user