fix: document cron router auth chain
This commit is contained in:
@@ -17,6 +17,15 @@ type CreateFunctionRequest struct {
|
||||
TTL string `json:"ttl"` // e.g. "24h", "7d" — пустое = функция не протухает
|
||||
}
|
||||
|
||||
// CreateTimeTriggerRequest — тело POST /console/api/timetriggers.
|
||||
type CreateTimeTriggerRequest struct {
|
||||
Name string `json:"name"`
|
||||
FunctionName string `json:"functionName"`
|
||||
Cron string `json:"cron"`
|
||||
Method string `json:"method"`
|
||||
SubPath string `json:"subpath"`
|
||||
}
|
||||
|
||||
// UpdateCodeRequest — тело PUT /console/api/functions/:name/code.
|
||||
type UpdateCodeRequest struct {
|
||||
Code string `json:"code"`
|
||||
|
||||
Reference in New Issue
Block a user