Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
BeebuddyUtil
/
dma-common-backend
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 992888d0
authored
Oct 15, 2020
by
Beebuddy Builder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConnectMongoInstance v6
1 parent
78a0f5e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
dist/src/index.js
src/index.js
dist/src/index.js
View file @
992888d
...
@@ -3,10 +3,12 @@
...
@@ -3,10 +3,12 @@
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
value
:
true
});
});
exports
.
AppApi
=
exports
.
ENV
=
exports
.
Utils
=
void
0
;
exports
.
AppApi
=
exports
.
ConnectMongo
=
exports
.
ENV
=
exports
.
Utils
=
void
0
;
var
_dotenv
=
_interopRequireDefault
(
require
(
"dotenv"
));
var
_dotenv
=
_interopRequireDefault
(
require
(
"dotenv"
));
var
_connect_db
=
_interopRequireDefault
(
require
(
"./utils/mongodb/connect_db"
));
var
_app
=
require
(
"./appapi/app"
);
var
_app
=
require
(
"./appapi/app"
);
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
};
}
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
};
}
...
@@ -48,6 +50,8 @@ var ENV = {
...
@@ -48,6 +50,8 @@ var ENV = {
env
:
process
.
env
env
:
process
.
env
};
};
exports
.
ENV
=
ENV
;
exports
.
ENV
=
ENV
;
var
ConnectMongo
=
_connect_db
.
default
;
exports
.
ConnectMongo
=
ConnectMongo
;
var
AppApi
=
{
var
AppApi
=
{
initial
:
_app
.
initial
,
initial
:
_app
.
initial
,
addPostMethod
:
_app
.
addPostMethod
,
addPostMethod
:
_app
.
addPostMethod
,
...
...
src/index.js
View file @
992888d
import
dotenv
from
'dotenv'
import
dotenv
from
'dotenv'
import
ConnectMongoInstance
from
'./utils/mongodb/connect_db'
;
import
{
initial
,
addPostMethod
,
addGetMethod
,
startApp
}
from
'./appapi/app'
import
{
initial
,
addPostMethod
,
addGetMethod
,
startApp
}
from
'./appapi/app'
dotenv
.
config
();
dotenv
.
config
();
...
@@ -20,6 +21,9 @@ export const ENV = {
...
@@ -20,6 +21,9 @@ export const ENV = {
env
:
process
.
env
env
:
process
.
env
}
}
export
const
ConnectMongo
=
ConnectMongoInstance
;
export
const
AppApi
=
{
export
const
AppApi
=
{
initial
,
initial
,
addPostMethod
,
addPostMethod
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment