mirror of https://github.com/certd/certd
chore:
parent
d6c7326467
commit
cb86151deb
|
@ -50,7 +50,7 @@ export class BasicSettingsController extends BaseController {
|
|||
const sysPublic = await this.getSysPublic();
|
||||
const installInfo = await this.getInstallInfo();
|
||||
let siteInfo = {};
|
||||
if (!isComm()) {
|
||||
if (isComm()) {
|
||||
siteInfo = await this.getSiteInfo();
|
||||
}
|
||||
const siteEnv = await this.getSiteEnv();
|
||||
|
|
|
@ -59,4 +59,9 @@ export class SysAccessController extends AccessController {
|
|||
async getAccessTypeDict() {
|
||||
return await super.getAccessTypeDict();
|
||||
}
|
||||
|
||||
@Post('/simpleInfo', { summary: 'sys:settings:view' })
|
||||
async simpleInfo(@Query('id') id: number) {
|
||||
return await super.simpleInfo(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue