1.0.1 • Published 7 years ago

shauns-server v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

I noticed that we were using a lot of the same patterns when creating a backend for our apps, and that the code for these got really messy really fast. So what I decided to do was start a small codebase that incorporated these patterns. In this way, we can start setting up backends more quickly and deal with less bugs. There's a lot of functionality I'd still like to add, such as a one-off pattern for REST APIs, automatic parameter resolution, etc.

The routes object should have the following structure:

const routes = [{ segment: "api", get: someAction, post: someOtherAction, put: yetAnotherAction, ... subroutes: ... },

...

]