@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.

Usage no npm install needed!

<script type="module">
  import amariugUrls from 'https://cdn.skypack.dev/@amariug/urls';
</script>

README

@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`,
    ...
)

License

Apache License 2.0