Giter Site home page Giter Site logo

r3wt / express-map Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 2.0 18 KB

cool routing/autoloading library for express.

Home Page: https://www.npmjs.com/package/express-map2

JavaScript 100.00%
expressjs node-js node-module routing autoloading express express-map2

express-map's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @r3wt
  • ๐Ÿ‘€ Iโ€™m interested in React, Typescript, Rust, Scala, C++
  • ๐ŸŒฑ Iโ€™m currently learning Unreal Engine 5
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on Open Source Projects
  • ๐Ÿ“ซ How to reach me [email protected]

express-map's People

Contributors

r3wt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

codefingas zeph33

express-map's Issues

possible features:

  1. parsing string global middleware. currently only function middleware are able to be used.

currently supported

var Middleware = require('controllers/Middleware');

app.map('/api/v1/test', Middlewarer.parseJWT, Middleware.isUser, {
 'GET /user':'User.loadOne'
});

proposed support

app.map('/api/v1/test', 'Middlewarer.parseJWT, Middleware.isUser', {
 'GET /user':'User.loadOne'
});
  1. support comma seperated http methods. make sure to prevent duplicate handlers.

currently supported

app.map('/api/v1/test',{
  'GET /:id':'Test.get',
  'POST /:id':'Test.create',
  'PUT /:id':'Test.update',
  'Delete /:id':'Test.delete'
});

proposed support

app.map('/api/v1/test',{
  'GET, POST, PUT, DELETE /:id':'Test.crud'
});

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.