Search
Preparing search index...
The search index is not available
@amagaki/amagaki
Options
All
Public
Public/Protected
All
Inherited
Menu
@amagaki/amagaki
StaticRoute
Class StaticRoute
Hierarchy
Route
StaticRoute
Index
Constructors
constructor
Properties
_pod
Path
fields
pod
provider
serving
Path
Accessors
content
Type
pod
Path
static
File
url
url
Path
Methods
build
to
String
Constructors
constructor
new
Static
Route
(
provider
:
RouteProvider
, podPath
:
string
, servingPath
?:
string
)
:
StaticRoute
Parameters
provider:
RouteProvider
podPath:
string
Optional
servingPath:
string
Returns
StaticRoute
Properties
Private
_pod
Path
_pod
Path
:
string
fields
fields
:
Record
<
string
,
any
>
pod
pod
:
Pod
provider
provider
:
RouteProvider
serving
Path
serving
Path
:
string
Accessors
content
Type
get
contentType
(
)
:
string
Returns the content type header for the route, based on the file's pod path.
Returns
string
pod
Path
get
podPath
(
)
:
string
Returns
string
static
File
get
staticFile
(
)
:
StaticFile
Returns
StaticFile
url
get
url
(
)
:
Url
Returns
Url
url
Path
get
urlPath
(
)
:
string
Returns
string
Methods
build
build
(
options
?:
BuildRouteOptions
)
:
Promise
<
string
>
Parameters
Optional
options:
BuildRouteOptions
Returns
Promise
<
string
>
to
String
to
String
(
)
:
string
Returns
string
Exports
Static
Route
constructor
_pod
Path
fields
pod
provider
serving
Path
content
Type
pod
Path
static
File
url
url
Path
build
to
String
Generated using
TypeDoc
Returns the content type header for the route, based on the file's pod path.