We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@Auth()
1 parent 110f8a8 commit fb6fca1Copy full SHA for fb6fca1
src/modules/post/post.controller.ts
@@ -157,21 +157,21 @@ export class PostController {
157
}
158
159
@Patch("/createIndex")
160
- // @Auth()
+ @Auth()
161
@ApiOperation({ summary: "创建或更新文章 json 索引" })
162
async createIndex() {
163
return await this.postService.createIndex();
164
165
166
@Get("/indexes")
167
168
@ApiOperation({ summary: "获取文章索引" })
169
async getIndexes() {
170
return await this.redis.get("posts-index");
171
172
173
@Delete("/indexes")
174
175
@ApiOperation({ summary: "删除文章索引" })
176
async deleteIndexes() {
177
return await this.redis.del("posts-index");
0 commit comments