Add “more” page
This commit is contained in:
13
app/actions/more/index.rb
Normal file
13
app/actions/more/index.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
module Adamantium
|
||||
module Actions
|
||||
module More
|
||||
class Index < Action
|
||||
include Deps["views.more.index"]
|
||||
|
||||
def handle(req, res)
|
||||
res.render index
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
15
app/actions/posts/archive.rb
Normal file
15
app/actions/posts/archive.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
module Adamantium
|
||||
module Actions
|
||||
module Posts
|
||||
class Archive < Action
|
||||
include Deps["views.posts.archive"]
|
||||
|
||||
def handle(req, res)
|
||||
year = req.params[:year]
|
||||
|
||||
res.render archive, year: year
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user