• This project
    • Loading...
  • Sign in

맹주환 / take_an_umbrella

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • take_an_umbrella
  • server
  • router
  • location.js
  • 맹주환's avatar
    Add function client/location.js to get user's location and send this to server · 2a687ccc
    2a687ccc
    맹주환 authored 2021-12-09 13:49:44 +0900
location.js 295 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
const express = require('express');
const router = express.Router();

let location = new Array();

location = {
	lat : null,
	lng : null
}

router.post("/", (req,res) => {
    location.lat = req.body.lat;
    location.lng = req.body.lag;
    res.send({test : "hi"});
});

module.exports =router;