Skip to content

Commit 95abd16

Browse files
authored
Update index.ts
1 parent 637aaee commit 95abd16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ module.exports = async (req, res) => {
1010
res.setHeader("Cache-Control", "public, immutable, no-transform, s-maxage=86400, max-age=86400");
1111
res.status(200).end(file);
1212
} catch (error) {
13-
console.error(error)
13+
console.error(error);
1414
res.status(500).send("The server encountered an error. You may have inputted an invalid query.");
1515
}
16-
}
16+
};
1717

1818
function checkUrl(string, hostname) {
1919
var url = "";
@@ -23,3 +23,4 @@ function checkUrl(string, hostname) {
2323
return false;
2424
}
2525
return true;
26+
}

0 commit comments

Comments
 (0)