FunctionscreateActioncreateAction CallablecreateAction(opts: ServiceOptions, req: IncomingMessage, res: ServerResponse): Serviceresponds with the correct service depending on the actionParametersopts: ServiceOptionsoptions to pass Servicereq: IncomingMessagehttp request objectres: ServerResponsehttp responseReturns Service
responds with the correct service depending on the action