servie-redirect
v2.0.0
Published
Simple redirects for Servie
Downloads
14
Maintainers
Readme
Servie Redirect
Simple URL redirection for Servie - thin layer for creating a
Response
with body and status code.
Installation
npm install servie-redirect --save
Usage
import { redirect } from "servie-redirect";
function handle(req) {
return redirect(req, "/goto");
}
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
Apache 2.0