Protected
attachCalled after the initialization of the backend application is complete. Use this to configure the Express app before it is started, for example to offer additional endpoints.
The implementation may be async, however it will still block the configuration step until it's resolved.
the express application to configure.
either undefined
or a Promise resolving to undefined
.
Protected
defaultProtected
erroreslint-disable-next-line @typescript-eslint/no-explicit-any
Protected
getProtected
getProtected
getProtected
missingCalled right after the server for the Express app is started. Use this to additionally configure the server or as ready-signal for your service.
The implementation may be async, however it will still block the startup step until it's resolved.
either undefined
or a Promise resolving to undefined
.
Protected
readProtected
responseResolves to an array of file extensions - priority pairs supported by the Mini Browser
.
The file extensions start without the leading dot (.
) and should be treated in a case-insensitive way. This means,
if the Mini Browser
supports ['jpg']
, then it can open the MyPicture.JPG
file.
Contribution for hooking into the backend lifecycle:
initialize()
configure(expressApp)
onStart(httpServer)
onStop()