Coder Social home page Coder Social logo

sfantasy / express-load-router Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 3.0 27 KB

Automatically create routers from specified folder structures for Express.js

Home Page: https://sfantasy.github.io/express-load-router

License: MIT License

JavaScript 100.00%
express express-router nodejs router

express-load-router's Introduction

Hi there 👋

  • 🧐 We're hiring (Alibaba/Dingtalk,base at Hangzhou, China): iOS / Android / Front-end / C++
  • 招聘中(阿里巴巴控股集团-钉钉,base 杭州),iOS / Android / Front-end / C++ 技术栈,适合工作 1-5 年的同学!

SFantasy's GitHub stats

Top Langs

express-load-router's People

Contributors

sfantasy avatar vigks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

express-load-router's Issues

Add a different way of router definition

Full version of the definition, an array of different methods:

exports.path_name = [{
  method: 'GET',
  parameters: [':id'],
  middlewares: [m1, m2],
  handler(req, res) {}
}, {
  method: 'POST',
  handler(req, res) {}
}];

Short hand:

  • Function
  • Single Object

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.