module Runcobo::Params::Url

Overview

Defines url params.

class UrlParamsExample < BaseAction
  get "/params/:id/:category"
  url NamedTuple(id: Int64, category: String)

  call do
    sum = params[:id] + 6
    render_plain "#{sum}: #{category}"
  end
end

Direct including types

Defined in:

runcobo/actions/params/url.cr

Macro Summary

Macro Detail

macro url(code) #

[View source]