@superhero/core.resource

    1.8.3 • Public • Published

    Core › Resource

    Licence: MIT


    npm version

    This is an addon module to the superhero/core module. This addon is a simple dispatcher that can be used to serve public resources.

    Install

    npm install @superhero/core.resource

    ...or just set the dependency in your package.json file:

    {
      "dependencies":
      {
        "@superhero/core.resource": "*"
      }
    }

    Example

    config.js

    module.exports =
    {
      http:
      {
        server:
        {
          routes:
          {
            resource:
            {
              url       : '/resource/.+',
              method    : 'GET',
              allowed   : ['GET'],
              endpoint  : '@superhero/core.resource'
            }
          }
        }
      }
    }

    Keywords

    none

    Install

    npm i @superhero/core.resource

    DownloadsWeekly Downloads

    1

    Version

    1.8.3

    License

    MIT

    Unpacked Size

    9 kB

    Total Files

    18

    Last publish

    Collaborators

    • superhero