Skip to content

Commit

Permalink
ktx schedule test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyh12180 committed Nov 11, 2023
1 parent 2dd7f73 commit 17715a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/ktx_schedule/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = async function (context, req) {
const date = "20231112";
const time = "120000";

const call_command = `python3 ./ktx_schedule/ktx_api.py ${dep} ${arr} ${date} ${time}`;
const call_command = `python ./ktx_schedule/ktx_api.py ${dep} ${arr} ${date} ${time}`;
// console.log(call_command);

const execSync = require('child_process').execSync;
Expand Down
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@ <h1>Vanilla JavaScript App</h1>
</main>

<script>
/*
(async function () {
const { text } = await (await fetch(`/api/message`)).json();
document.querySelector('#name').textContent = text;
}());
*/
</script>

<!-- 길찾기 api호출 -->
Expand Down

0 comments on commit 17715a0

Please sign in to comment.