mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-03 16:03:18 +08:00
feat: 文件接口
This commit is contained in:
@@ -47,7 +47,9 @@ function getModule(req, res) {
|
||||
const allModules = $.read(MODULES_KEY);
|
||||
const module = findByName(allModules, name);
|
||||
if (module) {
|
||||
res.status(200).json(module.content);
|
||||
res.set('Content-Type', 'text/plain; charset=utf-8').send(
|
||||
module.content,
|
||||
);
|
||||
} else {
|
||||
failed(
|
||||
res,
|
||||
|
||||
Reference in New Issue
Block a user