mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Expose server instance in action hook 'server.start' (#9616)
* Expose server instance in action hook 'server.start' * Expose server in start/stop * Update documentation
This commit is contained in:
@@ -106,7 +106,7 @@ export async function createServer(): Promise<http.Server> {
|
||||
async function onShutdown() {
|
||||
emitter.emitAction(
|
||||
'server.stop',
|
||||
{},
|
||||
{ server },
|
||||
{
|
||||
database: getDatabase(),
|
||||
schema: null,
|
||||
@@ -141,7 +141,7 @@ export async function startServer(): Promise<void> {
|
||||
|
||||
emitter.emitAction(
|
||||
'server.start',
|
||||
{},
|
||||
{ server },
|
||||
{
|
||||
database: getDatabase(),
|
||||
schema: null,
|
||||
|
||||
Reference in New Issue
Block a user