module Runcobo::Params::Query

Overview

Defines query params.

class QueryParamsExample < BaseAction
  get "/params"
  query 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/query.cr

Macro Summary

Macro Detail

macro query(code) #

[View source]