Files
RSSHub/api/vercel.js
2022-05-20 19:27:08 +08:00

15 lines
319 B
JavaScript

const path = require('path');
const moduleAlias = require('module-alias');
moduleAlias.addAlias('@', path.join(__dirname, '../lib'));
const config = require('../lib/config');
config.set({
NO_LOGFILES: true,
});
const app = require('../lib/app');
module.exports = (req, res) => {
app.callback()(req, res);
};