mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
14 lines
319 B
JavaScript
14 lines
319 B
JavaScript
const Koa = require('koa');
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
const app = new Koa();
|
|
|
|
app.use((ctx) => {
|
|
ctx.body = fs.readFileSync(
|
|
path.resolve(__dirname, '../bilibili-evolved.dev.js'),
|
|
'utf-8'
|
|
);
|
|
});
|
|
console.log('Serve running at - Local: http://localhost:3050');
|
|
app.listen(3050);
|