-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for -ArgumentList on Routes, Handlers, Timers, Schedules, etc #330
Comments
Is this an alternative to Get-Podestate? |
So arguments for specific routes/middleware/timers, etc., like the It'll also allow more dynamic building of routes - as something I was going to look into was a Ie: Add-PodeRoute -Method Get -Path '/ChildItem' -ScriptBlock {
param($e, $function)
. $function
} -ArgumentList 'Get-ChildItem' |
#330: Add ArgumentList Parameter to most Functions
This will contain a fair few changes, the main one is being able to supply an
-ArgumentList
on Routes, Schedules, Handlers, Timers, and possibly others (maybe Middleware and Authentication).All:
Schedules:
$Lockable
. This should be changed to be within an$Event
hashtable.-ArgumentList
for Schedules will be a hashtable rather than an arrayTimers, Routes, and others:
-ArgumentList
array to be suppliedHandlers:
-ArgumentList
.$e.Email
and$e.Lockable
- but only the$email
is supplied.The text was updated successfully, but these errors were encountered: