1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-24 14:26:58 +02:00

add @todo note to the RequestData struct

This commit is contained in:
Gani Georgiev 2023-06-23 13:38:13 +03:00
parent 7ab8405946
commit 0a61db6efd

View File

@ -9,8 +9,9 @@ import (
// RequestData defines a HTTP request data struct, usually used // RequestData defines a HTTP request data struct, usually used
// as part of the `@request.*` filter resolver. // as part of the `@request.*` filter resolver.
type RequestData struct { type RequestData struct {
Method string `json:"method"` Method string `json:"method"`
Query map[string]any `json:"query"` Query map[string]any `json:"query"`
// @todo consider changing to Body?
Data map[string]any `json:"data"` Data map[string]any `json:"data"`
Headers map[string]any `json:"headers"` Headers map[string]any `json:"headers"`
AuthRecord *Record `json:"authRecord"` AuthRecord *Record `json:"authRecord"`