(options: ParseServerOptions)
| 99 | } |
| 100 | |
| 101 | export function getUserController(options: ParseServerOptions): UserController { |
| 102 | const { appId, emailAdapter, verifyUserEmails } = options; |
| 103 | const emailControllerAdapter = loadAdapter(emailAdapter); |
| 104 | return new UserController(emailControllerAdapter, appId, { |
| 105 | verifyUserEmails, |
| 106 | }); |
| 107 | } |
| 108 | |
| 109 | export function getCacheController(options: ParseServerOptions): CacheController { |
| 110 | const { appId, cacheAdapter, cacheTTL, cacheMaxSize } = options; |
no test coverage detected