Hacker Newsnew | past | comments | ask | show | jobs | submit | kevindurb's commentslogin

The idea is that this router works with so much more than the three routes... should prob update the example to show that

edit: updated example to show that this can handle things like url params since it just uses URLPattern()


A basic lit js modern hash router thats so simple you dont need a library for it


Doesnt the quickemu project do some of this automagically? https://github.com/quickemu-project/quickemu


You should try out vagrant, let’s you have a config file for your vm and you can choose different providers like libvirt, virtualbox, etc


If I remember correctly mongo stores the id in “_id” and has a getter for “id” so maybe they just iterated all the keys of the model when they stringified their output


Elasticsearch, too. In either case, it looks like they're just piping raw backend responses to the API endpoint without removing unnecessary fields.


Yep, that's an indication of Elasticsearch being used (and not transforming documents to a standard representation that strips such fields).


It seems like they basically just exposed a lot of data directly, as apparently most of their APIs didn’t enforce any authentication or hide records that had been soft deleted.

Apparently the records were strictly sequential, which I don’t believe is true for Mongo which IIRC includes the node ID in part of it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: