fix: restore wiki to dictionary, create dynamic blog pages and backend wiki CRUD
This commit is contained in:
1 parent
945c007a79
commit
dcfc4acae4
13 files changed
+328
-119
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { Controller, Get, Param } from '@nestjs/common';
|
||||
import { WikiService } from './wiki.service';
|
||||
|
||||
@Controller('wiki')
|
||||
export class WikiController {
|
||||
constructor(private readonly wikiService: WikiService) {}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.wikiService.findAll();
|
||||
}
|
||||
|
||||
@Get(':key')
|
||||
findOne(@Param('key') key: string) {
|
||||
return this.wikiService.findOneByKey(key);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user