File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const featureFlagQuery = require('../models/featureFlags')
10
10
const getFeatureFlags = async ( req , res ) => {
11
11
try {
12
12
const allFeatureFlags = await featureFlagQuery . fetchFeatureFlag ( )
13
- // console.log(res.status);
14
13
return res . json ( {
15
14
message : 'FeatureFlags returned successfully!' ,
16
15
featureflags : allFeatureFlags . length > 0 ? allFeatureFlags : [ ]
Original file line number Diff line number Diff line change @@ -590,6 +590,36 @@ const swaggerOptions = {
590
590
}
591
591
}
592
592
} ,
593
+ featureFlag : {
594
+ type : 'object' ,
595
+ properties : {
596
+ name : {
597
+ type : 'string'
598
+ } ,
599
+ id : {
600
+ type : 'string'
601
+ } ,
602
+ title : {
603
+ type : 'string'
604
+ } ,
605
+ created_at : {
606
+ type : 'number'
607
+ } ,
608
+ updated_at : {
609
+ type : 'number'
610
+ } ,
611
+ config : {
612
+ type : 'object'
613
+ } ,
614
+ owner : {
615
+ type : 'string'
616
+ } ,
617
+ launched_at : {
618
+ type : 'number'
619
+ }
620
+
621
+ }
622
+ } ,
593
623
errors : {
594
624
unAuthorized : {
595
625
type : 'object' ,
You can’t perform that action at this time.
0 commit comments