← All types

PortalSiteRoute

One server route of a site.

Fields

method

String!Non-null

HTTP method of the route: GET, POST, PUT, PATCH or DELETE.

path

String!Non-null

Full path of the route under /api, such as /api/orders/:id.

source

String!Non-null

The route's Lua; exports.handler answers the request.

Referenced by (1)
Exact type SDL
"""One server route of a site."""
type PortalSiteRoute {
  """HTTP method of the route: GET, POST, PUT, PATCH or DELETE."""
  method: String!
  """Full path of the route under `/api`, such as `/api/orders/:id`."""
  path: String!
  """The route's Lua; `exports.handler` answers the request."""
  source: String!
}