• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

varius official platform source code.


Commit MetaInfo

Revisiónbbec3cbff0c957d29d16a4daf6ae34ed45080895 (tree)
Tiempo2023-03-21 07:59:30
AutorNknightA <n.knight.pc0627@gmai...>
CommiterNknightA

Log Message

development Core program.

Cambiar Resumen

Diferencia incremental

--- a/API/main.js
+++ b/API/main.js
@@ -2,7 +2,6 @@ const http = require("http");
22 const express = require("express");
33
44 const app = express();
5-const portNumber = 8000;
65
76 app.get( "/", (req, res) => {
87 res.status(200).send("otowakka");
@@ -12,6 +11,8 @@ app.get("/api",(req,res) => {
1211 res.status(200).send({id:1, text:"aaaa"});
1312 });
1413
15-app.listen(portNumber);
1614 // コンソールにポート番号を表示
17-console.log(`PortNumber is ${portNumber}`);
15+
16+const server = app.listen(8000, function () {
17+ console.log("Running on: " + server.address().port);
18+})