Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
♻️ Send locations in tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jul 14, 2020
1 parent 5ae6301 commit 1e3571c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import polka from "polka";
import send from "@polka/send-type";
import Dot from "dot-object";
import UAParser from "ua-parser-js";
import geolite2 from "geolite2-redist";
Expand Down Expand Up @@ -119,7 +120,7 @@ polka()
.catch((error) => console.log("ERROR", error));

// Send OK response
res.end("OK");
return send(res, 201, data.location);
})
.listen(PORT, (error) => {
if (error) throw error;
Expand Down

0 comments on commit 1e3571c

Please sign in to comment.