0.3.6 • Published 3 years ago

ad-routeman v0.3.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

AD-ROUTEMAN

A simple route manager for Adonisjs

Github: https://github.com/jotalevi/routeman

Instalation

npm i ad-routeman

Usage

Add a route

node routeman add [http_method] [group_prefix] [route_name] [callback_name]

Ie.

node routeman add get api user/:id UserController.getUser
ParameterDescription
[http_method]The http method of the route
[group_prefix]The endpoint grouping prefix
[route_name]The endpoint of the route
[callback_name]The callback for this endpoint

Add a route based on a existing controller:

node routeman add-from [controller_file_name]

This will help you create a route for each of the Controllers methods Ie.

node routeman add-from UsersController.ts
ParameterDescription
[controller_file_name]The name of the file to be used as controller base

Remove a route:

node routeman remove [http_method] [route_name]

Ie.

node routeman remove get user/:id
ParameterDescription
[http_method]The http method of the route
[route_name]The endpoint of the route

Echo all the registered routes:

node routeman spit

Build router files:

node routeman build

Settings

node routeman settings [config_name]:[config_value]
ParameterDescription
[config_name]The name of the setting to be updated
[config_value]The new value of the variable

Help

Using the command node routeman help will echo this same text, should you ever need it.

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.5

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago