Skip to content

Commit 635c11c

Browse files
treetipsusername
andauthored
fix: change query values to get all of them without cutting them (#26)
Co-authored-by: username <[email protected]>
1 parent b92a688 commit 635c11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NextApiRequest, NextApiResponse } from "next"
22
import { InputResponseModel } from "../../model"
33

44
export default (req: NextApiRequest, res: NextApiResponse) => {
5-
const inputValue = req.query["value"][0]
5+
const inputValue = String(req.query["value"])
66
const responseBody: InputResponseModel = {
77
input: inputValue,
88
timestamp: getCurrentTimestamp(),

0 commit comments

Comments
 (0)