feat:URL
This commit is contained in:
@@ -58,7 +58,7 @@ ORDER BY "Date" DESC
|
||||
result.forEach((row: IVersionPool) => {
|
||||
const url: string[] = [];
|
||||
for (const arch of row.arch) {
|
||||
url.push(`./mc/version/${row.version}/${arch}`);
|
||||
url.push(`${config.express.host}/mc/version/${row.version}/${arch}`);
|
||||
}
|
||||
arr.push({
|
||||
id: row.version,
|
||||
|
||||
@@ -6,6 +6,10 @@ import downloadRouter from "./router/download.router.js";
|
||||
const app = express();
|
||||
app.set('trust proxy', true)
|
||||
|
||||
app.get('/',(req,res)=>{ // 主页
|
||||
|
||||
})
|
||||
|
||||
app.use('/mc',versionlistRouter)
|
||||
app.use('/download',downloadRouter)
|
||||
app.listen(config.express.port,()=>{
|
||||
|
||||
@@ -8,6 +8,7 @@ export interface IConfig {
|
||||
password: string;
|
||||
},
|
||||
express:{
|
||||
host:string;
|
||||
port:number;
|
||||
logger:boolean;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user