Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Feb 28, 2024
1 parent dccaa2a commit 67eecef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { JSONTransformerInterceptor } from './common/interceptors/json-transform
import { ResponseInterceptor } from './common/interceptors/response.interceptor'
import { ConfigsModule } from './modules/configs/configs.module'
import { PostModule } from './modules/post/post.module'
import { UserModule } from './modules/user/user.module'
import { CacheModule } from './processors/cache/cache.module'
import { DatabaseModule } from './processors/database/database.module'
import { HelperModule } from './processors/helper/helper.module'
Expand All @@ -23,6 +24,7 @@ import { HelperModule } from './processors/helper/helper.module'

LoggerModule,
PostModule,
UserModule,
],
controllers: [AppController],
providers: [
Expand Down
4 changes: 1 addition & 3 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ export async function bootstrap() {
const pid = process.pid

const prefix = 'P'
if (isDev) {
consola.debug(`[${prefix + pid}] OpenApi: ${url}/api-docs`)
}

consola.success(`[${prefix + pid}] Server listen on: ${url}`)

logger.log(`Server is up. ${chalk.yellow(`+${performance.now() | 0}ms`)}`)
Expand Down
9 changes: 7 additions & 2 deletions src/modules/user/user.controller.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { Controller } from '@nestjs/common'
import { Controller, Get } from '@nestjs/common'

import { AuthService } from '../auth/auth.service'
import { UserService } from './user.service'

@Controller(['master', 'user'])
@Controller('users')
export class UserController {
constructor(
private readonly userService: UserService,
private readonly authService: AuthService,
) {}

@Get('/')
async getUsers() {
return []
}
}

0 comments on commit 67eecef

Please sign in to comment.