1.0.7 • Published 5 years ago
@amariug/urls v1.0.7
@amariug/urls
An npm library or package containing a number of URL API endpoints abstracted from the amari-dmts repository to enhance modularity and reusability across different services and the client.
Installation
The package can be installed from the npm registry using this command;
npm install @amariug/urls
The above command will install the latest version of the package.
To install a particular version of this package, use this command;
npm install @amariug/urls@<package version>
for example
npm install @amariug/urls@1.0.0
Alternatively, to update your currently installed version to the latest version, use this command;
npm update @amariug/urls
Usage
You can the use this package by importing the URL variables, for example;
...
import { DELIVERIES_API_URL } from "@amariug/urls"
...
router.post(
DELIVERIES_API_URL,
...
)
The URL endpoints can easily be extended using the template literals, for example;
...
import { DELIVERIES_API_URL } from "@amariug/urls"
...
router.post(
`${DELIVERIES_API_URL}/:id/delete`,
...
)