Skip to content

Commit fb6fca1

Browse files
committed
perf(posts): add @Auth() for searching api
1 parent 110f8a8 commit fb6fca1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/post/post.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,21 @@ export class PostController {
157157
}
158158

159159
@Patch("/createIndex")
160-
// @Auth()
160+
@Auth()
161161
@ApiOperation({ summary: "创建或更新文章 json 索引" })
162162
async createIndex() {
163163
return await this.postService.createIndex();
164164
}
165165

166166
@Get("/indexes")
167-
// @Auth()
167+
@Auth()
168168
@ApiOperation({ summary: "获取文章索引" })
169169
async getIndexes() {
170170
return await this.redis.get("posts-index");
171171
}
172172

173173
@Delete("/indexes")
174-
// @Auth()
174+
@Auth()
175175
@ApiOperation({ summary: "删除文章索引" })
176176
async deleteIndexes() {
177177
return await this.redis.del("posts-index");

0 commit comments

Comments
 (0)