Closed ire4ever1190 closed 1 year ago
Can now use CtxParam to alias a name + type
CtxParam
e.g.
type AuthHeader = CtxParam["Authorization", Header[string]]
Now AuthHeader can be used and it will automatically use "Authorization" as the name
AuthHeader
# No need to do {.name: "Authorization".} since it already knows thats its name "/secrets" -> get(auth: AuthHeader): # stuff
Can now use
CtxParam
to alias a name + typee.g.
Now
AuthHeader
can be used and it will automatically use "Authorization" as the namee.g.