prepared for vercel
This commit is contained in:
@@ -12,6 +12,10 @@ app.listen(port, () => {
|
|||||||
console.log("Server Listening on PORT:", port);
|
console.log("Server Listening on PORT:", port);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get("/", (a, response) => {
|
||||||
|
response.send("Please provide a Discord user id after the slash.");
|
||||||
|
});
|
||||||
|
|
||||||
app.get("/*", (a, response) => {
|
app.get("/*", (a, response) => {
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
15
extended-user-info-api/vercel.json
Normal file
15
extended-user-info-api/vercel.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"builds": [
|
||||||
|
{
|
||||||
|
"src": "app.js",
|
||||||
|
"use": "@now/node"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"src": "/(.*)",
|
||||||
|
"dest": "app.js"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user