# Decorator Hidden

Decorator swagger
Module
import { Hidden } from "@tsed/swagger"
Source/packages/swagger/src/decorators/hidden.ts

# Overview

function Hidden(): Function;

# Description

Disable documentation for the class and his endpoint.

@Controller('/')
export class Ctrl {

  @Get('/')
  @Hidden()
  hiddenRoute(){

  }
}

@Controller('/')
@Hidden()
export class Ctrl {
  @Get('/')
  hiddenRoute() {

  }
  @Get('/2')
  hiddenRoute2() {

  }
}
```
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

Other topics