server.js 470 Bytes
const express = require('express');
const path = require('path');
const request = require('request');


const app = express();

app.use(express.static(path.join(__dirname,'kakao')));


app.listen(8080, function(req,res) {
    console.log("server started at 8080");
});

app.get('/', function(req,res){
    res.sendFile(path.join(__dirname+"/main.html"));
});

app.post('/geolocation', function(req,res){
    res.sendFile(path.join(__dirname+"/kakao/kakaomap.html"));
});