var express = require('express'); var app = express(); var jwt = require('jsonwebtoken'); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.listen(3000, function () { console.log("App start on port 3000"); }) //認証無しAPI app.get('/', function (req, res) { res.json({ status: "OK" }); }) //認証+Tokenの発行 app.post('/login', function (req, res) { //ID,PW取得 var username = req.bod