dekrypted / discord-image-logger

IP Logger that uses discord's "Open Original" feature to steal IP's.
The Unlicense
2.13k stars 575 forks source link

Vercel serverless complication problem #21

Closed Cr7pt0nic closed 1 year ago

Cr7pt0nic commented 1 year ago

Hi I've been trying to implement this in vercel.app using the serverless functions and I cannot seem to know how to implement the serverless functions to interact with the main.py script as an API. When deploying the domain and going to /main.py it allows me to immediately download the file but not execute it as an API. Any solution for this?

dekrypted commented 1 year ago

Hi!

Firstly, APIs need to be in the /api/ route. So you'd want the page to look something like this: yourwebsite.com/api/main

So, in your GitHub repo, you can click the edit button on the file and put an api/ before the file name to move it to the proper directory.

Hope this helps! Please reply if you need more help.