A Node.js API which accepts all GET requests and redirects them to a specified page.
| src | ||
| .gitignore | ||
| example.env | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Redirect API
A Node.js API which accepts all GET requests and redirects them to a specified page.
Getting Started
Requirements
- tsc
- Node.js v12 or higher
Steps
- Rename
example.envto.env. - Update the
portandurloptions in the.envfile.port: The port the API will run on.url: The URL to redirect to.
- Open your terminal and run
npm start. - Done!