Sha256: 8072b3671fcbb0ccbccfe3c96b641bce1dc25e796be87e9be0439cfa2bc1b511
Contents?: true
Size: 602 Bytes
Versions: 6
Compression:
Stored size: 602 Bytes
Contents
module {{namespace_module}} module Accounts class Endpoint include Accounts include Shogun::Endpoint def initialize(router:) router.push route: route(verb: :get, control: List::Control) router.push route: route(verb: :post, control: Create::Control) router.push route: route(verb: :get, matcher: /(?<id>.+)/, control: Show::Control) router.push route: route(verb: :patch, matcher: /(?<id>.+)/, control: Update::Control) router.push route: route(verb: :delete, matcher: /(?<id>.+)/, control: Destroy::Control) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems