Skip to content

serviejs/servie-redirect

Repository files navigation

Servie Redirect

NPM version NPM downloads Build status Test coverage

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

About

Redirects for Servie

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published