Added Node.js support.
This commit is contained in:
15
src/nodejs/unit-http/addon.cpp
Normal file
15
src/nodejs/unit-http/addon.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
/*
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
#include "unit.h"
|
||||
|
||||
|
||||
napi_value
|
||||
Init(napi_env env, napi_value exports)
|
||||
{
|
||||
return Unit::init(env, exports);
|
||||
}
|
||||
|
||||
NAPI_MODULE(Unit, Init)
|
||||
Reference in New Issue
Block a user