# Resource
A resource is a cached external data source, by default a resource contains a single data but can contain multiple using custom resource.
# Default resource
A default resource is exposed with a Nuxt.js server middleware and Nuxt.js plugin.
The name
attribute is used as a unique id
to identify it from other resources.
It's also used to generate the stored filename and the static url which is exposed publicly.
For instance a resource with my-resource
will have:
- The id
my-resource
to use it with the Nuxt.js plugin - A file named
my-resource.json
inside the default rootFolder - An exposed route available at http://hostname:port/rootUrl/my-resource.json