Simple URL redirection for Servie - thin layer for creating a
Responsewith body and status code.
npm install servie-redirect --save
import { redirect } from "servie-redirect";
function handle(req) {
return redirect(req, "/goto");
}This project is written using TypeScript and publishes the definitions directly to NPM.
Apache 2.0