Skip to content

Commit

Permalink
doc: update core/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 18, 2023
1 parent 83e1e98 commit 4bee965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class User {
```typescript
import { TypeNexus, Controller, Param, Body, DataSource } from 'typenexus';
import { Get, Post, Put, Delete, Patch, Delete, Head } from 'typenexus';
import { User } from '../entities/user.entity';
import { User } from '../user.entity.js';

@Controller('/api/users')
export class UserController {
Expand Down Expand Up @@ -122,7 +122,7 @@ This class will register routes specified in method decorators in your server fr

```typescript
import { TypeNexus } from 'typenexus';
import { UserController } from './controller/User.js';
import { UserController } from './user.controller.js';

;(async () => {
const app = new TypeNexus();
Expand Down

0 comments on commit 4bee965

Please sign in to comment.