WHArchive / redirect-api

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

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

License:MIT License


Languages

Language:TypeScript 93.3%Language:Shell 6.7%