Skip to content

Commit

Permalink
fix: tag controller忘了挂载
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Oct 27, 2023
1 parent 1b68d02 commit dc9b0a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/server/src/app/tag/tag.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import {PagedDto} from '@bangbang93/utils/nestjs'
import {Controller, Get, Param, Query} from '@nestjs/common'
import {IArticleSchema} from '../article/article.model'
import {ArticleService} from '../article/article.service'
import {TagService} from './tag.service'

@Controller('api/tag')
export class TagController {
constructor(
private readonly tagService: TagService,
private readonly articleService: ArticleService,
) {}

Expand Down
2 changes: 2 additions & 0 deletions packages/server/src/app/tag/tag.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Module} from '@nestjs/common'
import {MongooseModule} from '@nestjs/mongoose'
import {forNestModule} from 'mongoose-typescript'
import {TagAdminController} from './tag-admin.controller'
import {TagController} from './tag.controller'
import {Tag} from './tag.model'
import {TagService} from './tag.service'

Expand All @@ -12,6 +13,7 @@ import {TagService} from './tag.service'
]),
],
controllers: [
TagController,
TagAdminController,
],
providers: [
Expand Down

0 comments on commit dc9b0a1

Please sign in to comment.