|
@@ -22,14 +22,13 @@ export class WebController {
|
|
|
return this.webService.setArticleCount(+id);
|
|
|
}
|
|
|
|
|
|
- @Get('what')
|
|
|
- getArticleWithSearch(@Query('key') key: string, @Headers('locale') locale?: string) {
|
|
|
- return this.webService.searchArticles(key, locale);
|
|
|
- // return true;
|
|
|
- }
|
|
|
-
|
|
|
@Get('category/tree')
|
|
|
getCategoryTree(@Query('id') id: string) {
|
|
|
return this.webService.getCategoryTreeAndPath(+id);
|
|
|
}
|
|
|
+
|
|
|
+ @Get('search')
|
|
|
+ getArticleWithSearch(@Query('key') key: string, @Headers('locale') locale?: string) {
|
|
|
+ return this.webService.searchArticles(key, locale);
|
|
|
+ }
|
|
|
}
|