routePath function

String? routePath(
  1. Context c
)

Returns the registered route pattern of the matched handler.

app.get('/posts/:id', (c) {
  print(routePath(c)); // '/posts/:id'
  return c.text('ok');
});

Implementation

String? routePath(Context c) => c.routePath;