Skip to content

Commit cb3bd4f

Browse files
committed
Add placeholder routes and methods
1 parent 038f14e commit cb3bd4f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class HtmlPublicationController < ContentItemsController
2+
include Cacheable
3+
4+
def show; end
5+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>placeholder</p>

config/routes.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@
147147
get ":slug/:division", to: "calendar#division", as: :division
148148
end
149149

150+
# HTML publications
151+
constraints FullPathFormatRoutingConstraint.new("html_publication") do
152+
get "*path(.:locale)", to: "html_publication#show"
153+
end
154+
150155
# Local Transaction pages
151156
constraints FormatRoutingConstraint.new("local_transaction") do
152157
get ":slug", to: "local_transaction#index", as: "local_transaction_search"

0 commit comments

Comments
 (0)