UNPKG
event-local
Version:
latest (1.0.119)
1.0.119
1.0.118
1.0.117
1.0.110
1.0.108
1.0.23
1.0.20
1.0.19
1.0.18
1.0.16
1.0.8
1.0.7
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
Event client
event-local
/
src
/
ApiLocalInit.ts
7 lines
(6 loc)
•
188 B
text/typescript
View Raw
1
2
3
4
5
6
7
export
function
ApiLocalInit
(
app
) {
if
(
Array
.
isArray
(
global
.
API_CHANNEL
))
for
(
let
api
of
global
.
API_CHANNEL
) { app[api.
method
.
toLowerCase
()](api.
url
, api.
callback
) } }