Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
feat: noteに関するものを追加 #290
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Oct 16, 2022
1 parent 1cc1e95 commit 2fb441d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next-api/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { NotesModule } from './notes/notes.module';

@Module({
imports: [],
imports: [NotesModule],
controllers: [AppController],
providers: [AppService],
})
Expand Down
4 changes: 4 additions & 0 deletions packages/next-api/src/notes/notes.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Controller } from '@nestjs/common';

@Controller('notes')
export class NotesController {}
9 changes: 9 additions & 0 deletions packages/next-api/src/notes/notes.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { NotesService } from './notes.service';
import { NotesController } from './notes.controller';

@Module({
providers: [NotesService],
controllers: [NotesController]
})
export class NotesModule {}
4 changes: 4 additions & 0 deletions packages/next-api/src/notes/notes.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class NotesService {}

0 comments on commit 2fb441d

Please sign in to comment.