Skip to content

An experimental module to provide an out of the box router schema to ExpressJs

License

Notifications You must be signed in to change notification settings

tarla/express-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

An experimental module to provide an out of the box router schema to ExpressJs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published