UNPKG
authkey
Version:
latest (1.4.0)
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
simple app key issue and verification
github.com/adekbadek/authkey
adekbadek/authkey
authkey
/
index.js
13 lines
(11 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
server =
require
(
'./src/server'
)
module
.
exports
=
(
{ port =
3000
, ...config }
) =>
{
return
({
listen
:
() =>
server
(config).
listen
(port,
() =>
{
console
.
log
(
`listening on port
${port}
`
) }), }) }