createRoute method

  1. @override
void createRoute({
  1. required String path,
  2. required RegExp method,
  3. required RequestHandler onRequest,
})
override

Implementation

@override
void createRoute({
  required String path,
  required RegExp method,
  required RequestHandler onRequest,
}) {
  final ServerUniverseFunction server_universeDartFunction = ServerUniverseFunction(
    path: parsePattern(path),
    method: method,
    onRequest: onRequest,
  );
  functions.add(server_universeDartFunction);
}