require "athena"
@[ARTA::Route(path: "/api")]
class Users < ATH::Controller
@[ARTA::Get("")]
def list : String
"list"
end
@[ARTA::Get("{id}")]
def index(id : Int32) : Int32
id
end
end
ATH.run
Fixes the #index method's path previously being /api{id} and instead normalizes it to be the expected /api/{id} path.
Fixes the
#index
method's path previously being/api{id}
and instead normalizes it to be the expected/api/{id}
path.