Skip to content

Commit

Permalink
docs(readme): add language on code markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorikairox committed May 12, 2022
1 parent 111cf30 commit b6b3421
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ In this simplified example, we are building a todo-app:

### Modules

```Typescript
```ts
@Module({
controllers: [TodoController],
injectables: [TodoService]
Expand All @@ -56,7 +56,7 @@ class TodoModule {}

### Controllers

```Typescript
```ts
@Controller('todo')
class TodoController {
//todoService will be automatically injected at runtime with DI
Expand Down Expand Up @@ -93,7 +93,7 @@ class TodoController {

### Services

```Typescript
```ts
//By default, injectables are singleton
@Injectable()
class TodoService {
Expand All @@ -112,7 +112,7 @@ class TodoService {

### Run your app

```Typescript
```ts
const optionalPort = 4000;
const app = new DanetApplication();
app.bootstrap(TodoModule);
Expand Down

0 comments on commit b6b3421

Please sign in to comment.