Skip to content
Myr

refactored

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent 2b958a2 · Browse files · 2 files+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−3 removed

  • other:+2 added−3 removed

2 files+2 added−3 removed

modified:src/hono.js-1 removed
modified:src/node.js+2 added-2 removed
1const METHOD_NAME_OF_ALL = 'all'23const createResult = ({ handler, params } = {}) => {3const createResult = (handler, params) => {4 return { handler: handler, params: params }5}67class Node {
102 unmodified lines
110 if (!handler) {111 return this.noRoute()112 }113114 return createResult({ handler: handler, params: params })114 return createResult(handler, params)115 }116117 noRoute() {118 return null
4 unmodified lines