Merge branch 'master' of github.com:Suwings/MCSManager

This commit is contained in:
unitwk 2022-11-29 20:26:42 +08:00
commit cdcd3d9270
3 changed files with 29 additions and 6 deletions

View File

@ -144,7 +144,7 @@ For Windows: Download the latest installation pack and overwrite all existing fi
This software requires all three projects to run. The code you use for installation is the result of compilation and integration.
[**Web/Web Backend**](https://github.com/MCSManager/MCSManager)
[**Web Backend**](https://github.com/MCSManager/MCSManager)
- Role: Control Center
- Responsible for: Backend APIs, user data management, and communication & authentication with daemons.
@ -246,7 +246,11 @@ After the security issue has been resolved, your name will be listed as the bug-
## License
Apache-2.0 license
Copyright 2022 [MCSManager Dev](https://github.com/mcsmanager), Apache-2.0 license.
**Additional Requirements:**
You must keep all copyright information and place "Powered by MCSManager" in a conspicuous position.
Copyright 2022 [MCSManager Dev](https://github.com/MCSManager).

View File

@ -252,8 +252,6 @@ MCSManager 已支持中文,英文两种语言,已经实现国际化全面覆
遵循 Apache-2.0 协议。
### 额外限制
**除非特别许可授权,否则您必须在登录或主要界面中明显位置附上 `Powered by MCSManager` 文字。**
**我们对源代码有额外的限制你必须保留所有版权文字带Copyright并在明显位置附上 Powered by MCSManager。**
版权所有 2022 MCSManager 开发团队。

View File

@ -77,6 +77,27 @@ router.get(
}
);
router.post(
"/touch",
permission({ level: 1 }),
validator({ query: { remote_uuid: String, uuid: String }, body: { target: String } }),
async (ctx) => {
try {
const serviceUuid = String(ctx.query.remote_uuid);
const instanceUuid = String(ctx.query.uuid);
const target = String(ctx.request.body.target);
const remoteService = RemoteServiceSubsystem.getInstance(serviceUuid);
const result = await new RemoteRequest(remoteService).request("file/touch", {
target,
instanceUuid
});
ctx.body = result;
} catch (err) {
ctx.body = err;
}
}
);
router.post(
"/mkdir",
permission({ level: 1 }),