1.0.7 • Published 5 years ago

@amariug/urls v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

@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

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago