new MockController( app, mocksDir, grpcMocksDir )

Description

Defines and registers admin/management endpoints

Parameters
Name Type Description
app express.Application

instance of express application

mocksDir string

location of http mocks

grpcMocksDir string

location of grpc mocks

Methods


register() → {void}

Description

Registers management endpoints:

  • GET /mocks - DEPRECATED
  • DELETE /mocks - DEPRECATED
  • GET /restart
  • GET /ping
Returns