Closed robinmalik closed 4 years ago
Tests are failing because I have not migrated to Pester 5. So I either need to spend some time to migrate or figure out how to tell AppVeyor to use an older version.
I merged the changes, but that will not deploy the new version yet. This will just run through the build process, if it passes, then I can deploy it out to the gallery.
Modification for Issue #49
I noticed you've used quite a few script scoped variables which makes it a bit easier to 'pass' data around, so I went with that approach. Here's an example route for a plain text reply from our server:
Invoke-RequestRouter
will attempt to grab a value forResponseContentType
for the route. If it's $null, thenInvoke-StreamOutput
will default to a content type ofapplication/json
and convert the data to JSON format for the return. Otherwise it's set to whatever the user has specified for the route and currently, returns the data as plain text.