moahmedwafy commited on
Commit
7f5c5dd
·
1 Parent(s): 73c4c20

chore: remove test lines

Browse files
src/lib/swagger/swagger.ts CHANGED
@@ -122,7 +122,6 @@ class SwaggerRegistry {
122
  controllerData.routes.forEach((route) => {
123
  route.path = `/api/v1${controllerData.prefix}${route.path}`;
124
  const params = route.path.match(/:(\w+)/g);
125
- console.log(route.path, params);
126
 
127
  if (!paths[route.path]) {
128
  paths[route.path] = {};
 
122
  controllerData.routes.forEach((route) => {
123
  route.path = `/api/v1${controllerData.prefix}${route.path}`;
124
  const params = route.path.match(/:(\w+)/g);
 
125
 
126
  if (!paths[route.path]) {
127
  paths[route.path] = {};
src/modules/console/modules/admins/controllers/admins.controller.ts CHANGED
@@ -58,15 +58,6 @@ export class AdminsController extends BaseController {
58
  @SwaggerResponse([AdminSerialization])
59
  @SwaggerSummary("List all admins")
60
  @SwaggerDescription("List all admins")
61
- @SwaggerQuery({
62
- exampleRequiredQuery: {
63
- type: "string",
64
- required: true,
65
- },
66
- exampleOptionQuery: ["option 1", "option 2", 3],
67
- exampleSimpleQuery: "number",
68
- exampleSimpleQuery2: "boolean",
69
- })
70
  list = async (
71
  req: Request,
72
  res: Response<IJSONSuccessResponse<AdminSerialization[]>>
 
58
  @SwaggerResponse([AdminSerialization])
59
  @SwaggerSummary("List all admins")
60
  @SwaggerDescription("List all admins")
 
 
 
 
 
 
 
 
 
61
  list = async (
62
  req: Request,
63
  res: Response<IJSONSuccessResponse<AdminSerialization[]>>