Skip to content

Commit

Permalink
fix(init): check init can missing auth
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jul 20, 2022
1 parent fdc2525 commit 241baa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/init/init.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { ConfigsService } from "../configs/configs.service";
import { InitService } from "./init.service";

@Controller("init")
@Auth()
@ApiName
export class InitController {
constructor(
Expand All @@ -29,6 +28,7 @@ export class InitController {

@Get("/configs/get/default")
@ApiOperation({ summary: "获取默认配置" })
@Auth()
async initDefault() {
const { can_init } = await this.canInit();
if (!can_init)
Expand All @@ -38,6 +38,7 @@ export class InitController {

@Get("/configs/default")
@ApiOperation({ summary: "初始化默认配置" })
@Auth()
async setConfig() {
const { can_init } = await this.canInit();
if (!can_init)
Expand Down

0 comments on commit 241baa3

Please sign in to comment.