Skip to content

Commit

Permalink
Add heatmap caching
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-delbusso committed Mar 25, 2021
1 parent fdc8334 commit bb42b56
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const fetch = require('node-fetch');
const DEFAULT_API_ENDPOINT = "http://3.8.139.11:4683/api/v1/wifis/get/reloadFeatureCache"
const DEFAULT_API_ENDPOINT_FEATURES = "http://localhost:4683/api/v1/wifis/get/reloadFeatureCache"
const DEFAULT_API_ENDPOINT_HEAT_MAP = "http://localhost:4683/api/v1/wifis/get/realoadHeatmapData"

const startRequest = async (event) => {
fetch(process.env.API_ENDPOINT ?? DEFAULT_API_ENDPOINT);
const startRequest = async () => {
fetch(process.env.API_ENDPOINT ?? DEFAULT_API_ENDPOINT_FEATURES);
fetch(process.env.API_ENDPOINT ?? DEFAULT_API_ENDPOINT_HEAT_MAP);
const response = {
statusCode: 200,
body: JSON.stringify('Request started.'),
Expand Down

0 comments on commit bb42b56

Please sign in to comment.