File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,11 @@ pub fn run_app<T>(mut app T, port int) {
199
199
l := net.listen (port) or { panic ('failed to listen' ) }
200
200
app.vweb = Context{}
201
201
app.init_once ()
202
+ $for method in T.methods {
203
+ $if method.return_type is Result {
204
+ // check routes for validity
205
+ }
206
+ }
202
207
// app.reset()
203
208
for {
204
209
conn := l.accept () or { panic ('accept() failed' ) }
@@ -375,7 +380,7 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
375
380
mut vars := []string {cap: route_words_a.len}
376
381
mut action := ''
377
382
$for method in T.methods {
378
- $if method.return_type is Result {
383
+ $if method.return_type is Result {
379
384
attrs := method.attrs
380
385
route_words_a = [][]string {}
381
386
if attrs.len == 0 {
You can’t perform that action at this time.
0 commit comments