Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #88 from waiting-for-dev/all_verbs
Browse files Browse the repository at this point in the history
Add multiple verbs in web generators
  • Loading branch information
timriley authored Apr 5, 2019
2 parents 8b72eb8 + 7fc7132 commit 9c97b57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dry/web/roda/templates/flat_project/web.rb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ module <%= config[:camel_cased_app_name] %>
opts[:root] = Pathname(__FILE__).join("../..").realpath.dirname

use Rack::Session::Cookie, key: "<%= config[:underscored_project_name] %>.session", secret: self["settings"].session_secret
use Rack::MethodOverride

plugin :csrf, raise: true
plugin :dry_view
plugin :error_handler
plugin :flash
plugin :multi_route
plugin :all_verbs

route do |r|
# Enable this after writing your first web/routes/ file
Expand Down
2 changes: 2 additions & 0 deletions lib/dry/web/roda/templates/subapp/web.rb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ module <%= config[:camel_cased_umbrella_name] %>
opts[:root] = Pathname(__FILE__).join("../../..").realpath.dirname

use Rack::Session::Cookie, key: "<%= config[:underscored_umbrella_name] %>.<%= config[:underscored_project_name] %>.session", secret: self["core.settings"].session_secret
use Rack::MethodOverride

plugin :csrf, raise: true
plugin :dry_view
plugin :error_handler
plugin :flash
plugin :multi_route
plugin :all_verbs

route do |r|
# Enable this after writing your first web/routes/ file
Expand Down

0 comments on commit 9c97b57

Please sign in to comment.