Test PodeRoute - mdaneri/Pode GitHub Wiki
Test if a Route already exists.
Test-PodeRoute [-Method] <String> [-Path] <String> [[-EndpointName] <String>] [-CheckWildcard]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Test if a Route already exists for a given Method and Path.
Test-PodeRoute -Method Post -Path '/example'
Test-PodeRoute -Method Post -Path '/example' -CheckWildcard
Test-PodeRoute -Method Get -Path '/example/:exampleId' -CheckWildcard
If supplied, Pode will check for the Route on the Method first, and then check for the Route on the '*' Method.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The EndpointName of an Endpoint the Route is bound against.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The HTTP Method of the Route.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The URI path of the Route.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.