Skip to content

Mikrosekcja/express-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Controller

Yet another approach to MVC for Express.

Usage

Controller = require "express-controller"

module.exports = new Controller
  name  : "home"
  routes  :
    display :
      method  : "GET"
      url     : "/"
      action  : (options, req, res) -> res.send "Welcome home!"

About

This is generally a basis for specialized controller classes, like ModelController. One can use it as it is though.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published