spirit-js / spirit

Modern modular library for building web applications
http://spirit.function.run
ISC License
244 stars 18 forks source link

A possible error in request documentation #11

Closed gamtiq closed 7 years ago

gamtiq commented 7 years ago

It seems there is the following error in request documentation:

const hello = (url, method) => {
  return "Hello from " + method + " " + url
}
route.define([
  route.get("/", ["method", "url"], hello)
])

I suppose parameters of hello function should be method, url.

hnry commented 7 years ago

Good catch, thanks. PR welcomed in the future too!