1.4.0 • Published 8 years ago

play-express-router v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago