A Node.js API which accepts all GET requests and redirects them to a specified page.
This repository has been archived on 2025-11-01. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2023-12-27 19:53:57 +08:00
src init 2023-01-30 17:28:42 +08:00
.gitignore Initial commit 2023-01-30 17:22:26 +08:00
example.env init 2023-01-30 17:28:42 +08:00
LICENSE Initial commit 2023-01-30 17:22:26 +08:00
package-lock.json update packages 2023-03-11 11:06:48 +08:00
package.json Update package.json 2023-12-27 19:53:57 +08:00
README.md Update README.md 2023-03-11 11:01:14 +08:00
tsconfig.json update indentation 2023-02-04 15:32:50 +08:00

Redirect API

A Node.js API which accepts all GET requests and redirects them to a specified page.

Languages

Getting Started

Requirements

  • tsc
  • Node.js v12 or higher

Steps

  1. Rename example.env to .env.
  2. Update the port and url options in the .env file.
    • port: The port the API will run on.
    • url: The URL to redirect to.
  3. Open your terminal and run npm start.
  4. Done!