Skip to content

Commit bb42b56

Browse files
Add heatmap caching
1 parent fdc8334 commit bb42b56

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
const fetch = require('node-fetch');
2-
const DEFAULT_API_ENDPOINT = "http://3.8.139.11:4683/api/v1/wifis/get/reloadFeatureCache"
2+
const DEFAULT_API_ENDPOINT_FEATURES = "http://localhost:4683/api/v1/wifis/get/reloadFeatureCache"
3+
const DEFAULT_API_ENDPOINT_HEAT_MAP = "http://localhost:4683/api/v1/wifis/get/realoadHeatmapData"
34

4-
const startRequest = async (event) => {
5-
fetch(process.env.API_ENDPOINT ?? DEFAULT_API_ENDPOINT);
5+
const startRequest = async () => {
6+
fetch(process.env.API_ENDPOINT ?? DEFAULT_API_ENDPOINT_FEATURES);
7+
fetch(process.env.API_ENDPOINT ?? DEFAULT_API_ENDPOINT_HEAT_MAP);
68
const response = {
79
statusCode: 200,
810
body: JSON.stringify('Request started.'),

0 commit comments

Comments
 (0)