Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 07 17:23
    developit commented #20
  • Apr 07 17:22
    developit commented #20
  • Apr 07 17:20
    developit commented #20
  • Apr 07 17:19
    developit commented #20
  • Apr 07 17:19
    developit commented #20
  • Apr 07 17:19
    developit commented #20
  • Apr 07 16:33
    arifmahmudrana opened #20
  • Mar 27 11:50
    jokerrider007 commented #19
  • Mar 27 11:45
    jokerrider007 closed #19
  • Mar 27 11:45
    jokerrider007 commented #19
  • Mar 27 11:33
    jokerrider007 edited #19
  • Mar 27 11:32
    jokerrider007 edited #19
  • Mar 27 11:32
    jokerrider007 opened #19
  • Jan 06 05:52
    nuxy opened #18
  • Jan 06 05:15
    nuxy closed #14
  • Jan 06 05:15
    nuxy commented #14
  • Nov 26 2018 23:52
    serain commented #17
  • Nov 26 2018 22:26
    serain commented #17
  • Nov 26 2018 22:26
    serain commented #17
  • Nov 26 2018 21:54
    developit commented #16
Antonio Vázquez
@Avcajaraville
hello, is somebody here ? Im struggling trying to post data on an express app
and honestly, have no clue how to do it ...
Jason Miller
@developit
Hi @Avcajaraville
are you posting data to your express app, or from it (to an upstream)
if you want an example of how to use resource-router-middleware to build an API (which can accept POST requests), look at https://gitub.com/developit/express-es6-rest-api
Antonio Vázquez
@Avcajaraville
Hi Jason, thanks for your message. Sadly, I read it too late
but anyway, having now some issues too
yeah, not related with that, of course :)
John Edward Escuyos
@jeescu
Hi @developit, I'm having trouble how to add authorization middleware on a specific route, ex: read facets/1
can you help me out.
Thanks!
John Edward Escuyos
@jeescu
shoud i do something like this ?
authorize = () => { 
 let router = Router();
 router.get('*', authorizeHandler(['user', 'admin']))
 return router;
}
route.use('/facets', authorize(), facetsResource);
Carlos Eduardo
@duard
Hello
alxk
@serain
hey guys, is there any chance to get an example of running a test case with this?
I'm using jest but an example for any test framework would be grand