struct Noir::TreeSitterGoRouteExtractor::GfMetaRoute

Overview

GoFrame's standardized routing: a request struct embeds g.Meta whose struct tag carries the route (path:"/x" method:"get"), and group.Bind(controller) wires every such method up. The tag is the route definition — it's exactly what gf's own OpenAPI generator reads — so we surface it directly. #params are the struct's own request fields (json-tag name or field name); the analyzer types them by HTTP method.

Defined in:

miniparsers/go_route_extractor_ts.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, methods : Array(String), line : Int32, params : Array(String)) #

[View source]

Instance Method Detail

def line : Int32 #

[View source]
def methods : Array(String) #

[View source]
def params : Array(String) #

[View source]
def path : String #

[View source]