@servable/server
Version:
Servable server
33 lines (29 loc) • 449 B
JavaScript
export default async (props) => {
const {
protocol,
app,
schema,
configuration,
server,
servableConfig,
engine,
allProtocols
} = props
let file = await protocol.loader.beforeEnd
if (file) {
file = await protocol.loader.beforeEnd()
}
if (!file) {
return
}
await file({
app,
schema,
configuration,
server,
servableConfig,
engine,
allProtocols,
protocol
})
}