init method

Initializes the plug.

This method should be overridden to perform any necessary setup when the plug is first loaded. The default implementation returns the plug instance itself.

Implementation

@override
Future<DartFrogServerPlug> init() async {
  Pluggable.mapper.buildAtlas([
    ...FrogRequestMapper.all(Pluggable.mapper),
    FrogResponseMapper(Pluggable.mapper),
  ]);

  return this;
}