• AzureDiamond (unregistered)

    what language is that code? function() => { } is not legal js or php as far as i know, either you use () => { } or function() { }without the arrow. might just be a typo but its wierd

  • Hanzito (unregistered) in reply to AzureDiamond

    It's Javascript, and as far as I'm concerned, JS in the backend is the real WTF. I would say: how could this not have happened at some point?

  • Angela (unregistered) in reply to AzureDiamond

    Pretty sure there's just a missing )

  • (nodebb) in reply to Hanzito

    it's not valid JavaScript. Traditional function syntax is function(params) { body }, ES6 arrow function syntax is (params) => { body }. You can't have both the function keyword and =>.

    But other than that it looks like pretty normal Node.js using the Express framework.

Leave a comment on “The Update Route”

Log In or post as a guest

Replying to comment #:

« Return to Article