This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const fs = require('fs'); | |
const writeFileAtomicSync = require('write-file-atomic').sync; | |
const { jsonParser } = require('../src/express-common'); | |
const SECRETS_FILE = 'secrets.json'; | |
/** | |
* Initialize the plugin. | |
* @param {import('express').Router} router | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONNECTED(000001B4) | |
depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1 | |
verify error:num=20:unable to get local issuer certificate | |
verify return:1 | |
depth=1 C = US, O = Google Trust Services LLC, CN = GTS CA 1P5 | |
verify return:1 | |
depth=0 CN = novelai.net | |
verify return:1 | |
--- | |
Certificate chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https'); | |
const options = { | |
hostname: 'api.novelai.net', | |
port: 443, | |
path: '/', | |
method: 'GET', | |
}; | |
const req = https.request(options, (res) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entries":{ | |
"0":{ | |
"uid":0, | |
"key":[ | |
"Shuten", | |
"Shuten-Douji" | |
], | |
"keysecondary":[ | |