Skip to content

Serverless Base Path Plugin - Set a base API path for all function endpoints.

Notifications You must be signed in to change notification settings

daffinity/serverless-base-path-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Base Path Plugin

This is a Serverless plugin for setting a base path for all API Gateway endpoints in a Component.

Usage

Prefix Endpoint paths on deploy by adding the basePath to the custom Object in s-component.json.

Example s-project.json

"custom": {
    "basePath" : "test/base/path/"
  },

Keep in mind that currently it may take multiple deploys to work properly and any pre-existing endpoints will remain.

TODO

  • Detect changes to the basePath value and update Endpoints as needed.
  • Project level custom key support.
  • Module level custom key support.
  • Automatically add a trailing / if its missing from the basePath.

About

Serverless Base Path Plugin - Set a base API path for all function endpoints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •