summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/addon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodejs/unit-http/addon.cpp')
-rw-r--r--src/nodejs/unit-http/addon.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nodejs/unit-http/addon.cpp b/src/nodejs/unit-http/addon.cpp
new file mode 100644
index 00000000..6ced9538
--- /dev/null
+++ b/src/nodejs/unit-http/addon.cpp
@@ -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)