ken_nogi/oldCode/express/index copy.js
Kenichiro NOGI 06c28e8b5a oldCode: 旧LINEWORKS/Pleasanter連携コード一式を追加
express/LINEWORKS_Pleasanter/LINEWORKS_sendMessage、いずれも過去の
Express実装。Gitea移行に伴い保管。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 10:42:21 +09:00

32 lines
980 B
JavaScript

const express = require('express');
const https = require('https');
const cors = require('cors');
const { API_KEY, PORT, SSL_OPTIONS, CORS_ORIGIN } = require('./config.js'); // config.jsから設定をインポート
// expressとCORSの設定
const app = express();
app.use(cors({
origin: CORS_ORIGIN, // config.jsから読み込み
optionsSuccessStatus: 200
}));
// lwSendMessageモジュールの読み込み
require('./modules/lwSendMessage.js')(app);
// lineworksSurveyモジュールの読み込み
require('./modules/lineworksSurvey.js')(app);
// pdfConvertモジュールの読み込み
require('./modules/pdfConvert.js')(app);
// pdfMergeモジュールの読み込み
require('./modules/pdfMerge.js')(app);
// pdfToTextモジュールの読み込み
require('./modules/pdfToText.js')(app);
// HTTPSサーバーの起動
https.createServer(SSL_OPTIONS, app).listen(PORT, () => {
console.log(`HTTPS server is running on https://localhost:${PORT}`);
});