Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

New StaticRoute

Tyler James Leonhardt edited this page Oct 5, 2017 · 1 revision

NAME

New-StaticRoute

SYNOPSIS

Defines routes to serve a folder a specified endpoint

SYNTAX

New-StaticRoute [[-RoutePath] <Object>] [[-FolderPath] <Object>] [<CommonParameters>]

DESCRIPTION

Defines routes to serve a folder a specified endpoint. Perfect for static websites.

PARAMETERS

  • RoutePath: The endpoint you want to be the base of your static routes. Defaults to /
  • FolderPath: The folder you wish to serve statically
  • CommonParameters

EXAMPLE

# Content in ./public served at /
New-StaticRoute -FolderPath ./public

# Content in ./public served at /static
New-StaticRoute -FolderPath ./public -RoutePath "/static"
Clone this wiki locally