Skip to content

return to client static file from specific directory

Notifications You must be signed in to change notification settings

hyron-group/static-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

static-dir is an addons to allow returning a client file to a folder on the server side

Usage

1. Install

npm i @hyron/static-dir

2. Declare addons to target instance

server/app.json

{
    "base_url" : "http://localhost:3000",
    "addons" : {
        "static-dir" : "@hyron/static-dir"
    }
}

Config

Below are the settings of static-dir addons that you can declare when using

properties type description
path string indicates the path to the static directory on the server. The default is /public
prefix string Specifies the path on the url that will be used to access static files

Examle

appcfg.yaml

static-dir:
  path: /public
  prefix: /file

About

return to client static file from specific directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published