更新:接口
This commit is contained in:
10
web-server/app/controller/update.ts
Normal file
10
web-server/app/controller/update.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Controller } from 'egg';
|
||||
|
||||
export default class UpdateController extends Controller {
|
||||
public async getversion() {
|
||||
const { ctx } = this;
|
||||
const { version } = ctx.request.body;
|
||||
ctx.body = await ctx.service.update.getVersion(version);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user