File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ const state_1 = __importDefault(require("../state"));
8
8
const router = express_1 . default . Router ( ) ;
9
9
router . get ( '/:key' , ( req , res ) => {
10
10
const key = req . params . key ;
11
- const defaultValue = req . query . default ;
12
- const value = state_1 . default . store . get ( key , defaultValue ) ;
11
+ const value = state_1 . default . store . get ( key , null ) ;
13
12
res . json ( { value } ) ;
14
13
} ) ;
15
14
router . post ( '/:key' , ( req , res ) => {
Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ const router = express.Router();
6
6
7
7
router . get ( '/:key' , ( req , res ) => {
8
8
const key = req . params . key ;
9
- const defaultValue = req . query . default ;
10
9
11
- const value = state . store . get ( key , defaultValue ) ;
10
+ const value = state . store . get ( key , null ) ;
12
11
13
12
res . json ( { value} ) ;
14
13
} ) ;
You can’t perform that action at this time.
0 commit comments