mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ast, cgen, checker, parser: support method arguments in comptime $for (#9208)
This commit is contained in:
@@ -379,12 +379,12 @@ fn handle_conn<T>(mut conn net.TcpConn, mut app T) {
|
||||
// should be called first.
|
||||
if !route_path.contains('/:') && url_words == route_words {
|
||||
// We found a match
|
||||
app.$method(method_args)
|
||||
app.$method()
|
||||
return
|
||||
}
|
||||
|
||||
if url_words.len == 0 && route_words == ['index'] && method.name == 'index' {
|
||||
app.$method(method_args)
|
||||
app.$method()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user