Created
August 4, 2021 06:02
-
-
Save doyle-flutter/30a86e366858e8c5188903b19fe71b88 to your computer and use it in GitHub Desktop.
행안부 주소 검색 OPEN API - NodeJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'), | |
| app = express(), | |
| path = require('path'), | |
| port = process.env.PORT || 3000, | |
| _v = app.listen(port, _ => console.log(`Start : ${port}`)); | |
| app.use(express.json()); | |
| app.use(express.urlencoded({extended: false})); | |
| app.post('/', (req,res) => res.redirect("/com?data="+req.body.roadFullAddr)); | |
| app.get('/com', (req,res) => res.sendFile(path.join(__dirname, './ad.html'))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment