Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyh12180 committed Nov 12, 2023
2 parents 1da6c57 + c7c1dee commit f188a01
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/convertAddress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function getTransitFare(coordinates) {
"count": 10
};

const apiKey = "hTKivjDzuF5NFMpbPLckQa8cv8ZJyHxi6D7KSHcL";
const apiKey = "e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5";

const headers = {
"accept": "application/json",
Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ <h1>Vanilla JavaScript App</h1>

<script>
async function callTMapAPI(address) {
const url = `https://apis.openapi.sk.com/tmap/geo/convertAddress?version=1&searchTypCd=NtoO&reqAdd=${address}&reqMulti=S&resCoordType=WGS84GEO&appKey=hTKivjDzuF5NFMpbPLckQa8cv8ZJyHxi6D7KSHcL`;
//원래: e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5
const url = `https://apis.openapi.sk.com/tmap/geo/convertAddress?version=1&searchTypCd=NtoO&reqAdd=${address}&reqMulti=S&resCoordType=WGS84GEO&appKey=e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5`;
//원래:e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5
//hTKivjDzuF5NFMpbPLckQa8cv8ZJyHxi6D7KSHcL
const response = await fetch(url);

Expand Down
19 changes: 19 additions & 0 deletions src/swa-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"routes": [
{
"route": "/api",
"serve": "/api",
"force404": false
},
{
"route": "/",
"rewrite": "/index.html",
"force404": false
}
],
"staticWebApps": {
"apiLocation": "http://localhost:7071",
"appLocation": "http://localhost:4300"
}
}

0 comments on commit f188a01

Please sign in to comment.