Fix bug api expose too much information
This commit is contained in:
parent
e5a3f1793f
commit
3ef4e0c6eb
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ export const GET: RequestHandler = async ({url}: RequestEvent) => {
|
|||
return minimal
|
||||
})
|
||||
if(limit>0){
|
||||
ex = exams.slice(0,limit)
|
||||
ex = ex.slice(0,limit)
|
||||
}
|
||||
return json(ex)
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ export const GET: RequestHandler = async ({url}: RequestEvent) => {
|
|||
return minimal
|
||||
})
|
||||
if(limit>0){
|
||||
ex = exams.slice(0,limit)
|
||||
ex = ex.slice(0,limit)
|
||||
}
|
||||
return json(ex)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue