Skip to content

Commit

Permalink
#575: Updates route function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Badgerati committed Jul 13, 2020
1 parent 2a75f62 commit fd9b9c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Pode.psd1
Expand Up @@ -198,8 +198,6 @@
'Get-PodeOpenApiDefinition',
'Add-PodeOAResponse',
'Add-PodeOAComponentResponse',
'Set-PodeOAAuth',
'Set-PodeOAGlobalAuth',
'Set-PodeOARequest',
'New-PodeOARequestBody',
'Add-PodeOAComponentSchema',
Expand Down
18 changes: 18 additions & 0 deletions src/Public/Routes.ps1
Expand Up @@ -41,6 +41,15 @@ A literal, or relative, path to a file containing a ScriptBlock for the Route's
.PARAMETER ArgumentList
An array of arguments to supply to the Route's ScriptBlock.
.PARAMETER Authentication
The name of an Authentication method which should be used as middleware on this Route.
.PARAMETER Login
If supplied, the Route will be flagged to Authentication as being a Route that handles user logins.
.PARAMETER Logout
If supplied, the Route will be flagged to Authentication as being a Route that handles users logging out.
.PARAMETER PassThru
If supplied, the route created will be returned so it can be passed through a pipe.
Expand Down Expand Up @@ -270,6 +279,9 @@ An array of default pages to display, such as 'index.html'.
.PARAMETER ErrorContentType
The content type of any error pages that may get returned.
.PARAMETER Authentication
The name of an Authentication method which should be used as middleware on this Route.
.PARAMETER DownloadOnly
When supplied, all static content on this Route will be attached as downloads - rather than rendered.
Expand Down Expand Up @@ -657,6 +669,9 @@ An optional Path for the Route, to prepend before the Command Name and Module.
.PARAMETER Middleware
Like normal Routes, an array of Middleware that will be applied to all generated Routes.
.PARAMETER Authentication
The name of an Authentication method which should be used as middleware on this Route.
.PARAMETER NoVerb
If supplied, the Command's Verb will not be included in the Route's path.
Expand Down Expand Up @@ -852,6 +867,9 @@ An optional Path for the Route, to prepend before the Name.
.PARAMETER Middleware
Like normal Routes, an array of Middleware that will be applied to all generated Routes.
.PARAMETER Authentication
The name of an Authentication method which should be used as middleware on this Route.
.PARAMETER FlashMessages
If supplied, Views will have any flash messages supplied to them for rendering.
Expand Down

0 comments on commit fd9b9c6

Please sign in to comment.