Improvements all around :)
This commit is contained in:
parent
9a9956304a
commit
2f6e9acb4a
7 changed files with 255 additions and 262 deletions
|
|
@ -13,11 +13,6 @@ export default async (req: Request, res: Response) => {
|
|||
return res.status(404).send("PASTE_EXPIRED")
|
||||
}
|
||||
|
||||
if (req.query && paste.syntax === null) {
|
||||
paste.syntax = Object.keys(req.query)[0]
|
||||
await paste.save()
|
||||
}
|
||||
|
||||
return res.json({
|
||||
paste: paste.paste,
|
||||
syntax: paste.syntax
|
||||
|
|
|
|||
Loading…
Reference in a new issue