mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 13:35:08 +00:00
overhaul tests
This commit is contained in:
9
test/apps/basics/src/routes/delete-test/[id].json.js
Normal file
9
test/apps/basics/src/routes/delete-test/[id].json.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function del(req, res) {
|
||||
res.writeHead(200, {
|
||||
'Content-Type': 'application/json'
|
||||
});
|
||||
|
||||
res.end(JSON.stringify({
|
||||
id: req.params.id
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user