Class Router
Class Router This sets up the /graphql endpoint
Methods summary
public
|
|
public static
|
|
public static
array
|
|
public static
|
#
resolve_http_request( )
This resolves the http request and ensures that WordPress can respond with the appropriate JSON response instead of responding with a template from the standard WordPress Template Loading process |
public static
|
|
protected static
|
|
public static
|
|
public static
string
|
|
public static
mixed
|
#
process_http_request( )
This processes the graphql requests that come into the /graphql endpoint via an HTTP request |
Properties summary
public static
string
|
$route
Sets the route to use as the endpoint |
#
'graphql'
|
public static
integer
|
$http_status_code
Set the default status code to 403 to represent unauthenticated requests. Authenticated requests should set the status code to 200. |
#
403
|