Skip to content

Contribution Guide

wai-lin edited this page Aug 6, 2022 · 5 revisions

NOTE:

This guide will explain how the internal code works with sample examples and guide you through internal standardizations decisions.

Code Standards

Variables

Internal variables should prefix name with _ (eg. const _path = '/user').

example:

const users = router.path('/users')
// router.path() will return `_path` and `_handlerColl` variables
// which is necessary for `setup` function

router.setup(app, {
	paths: [users],
})

Clone this wiki locally