1.4.0 • Published 9 years ago

play-express-router v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Express Router

Express router is a module to simplify and organize routes on express applications, ideal for quickly create REST APIs.

Usage

val app = require('express')();
require('play-express-router')(app, 8080, __dirname);
// Your server is up and running at port 8080! =)

Routes example

# This file defines all application routes
# User Routes
GET     /users       User.all
POST    /users       User.create      
PUT     /users/:id   User.update
DELETE  /users/:id   User.delete

App structure

When using this module your app folder structure should be like this:

  • app.js
  • routes
  • controllers/
1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago