3 ms·
Great for a quick little hack, but I wouldn't want to maintain that conf file once the project grows.
by euphemize 13y ago
Great for a quick little hack, but I wouldn't want to maintain that conf file once the project grows.
- eksith 13y agoWell, this is for a very simple REST API and the post acknowledges that much. I mean if this does become a "project", I'm sure it's time to move it to a proper framework, but as you say for a quick hack, it's a pretty nice way to do it (with proper sanitization, of course). I'd also venture that this is an order of magnitude faster and more responsive than a framework so there are definitely some plusses and minuses to consider.
- euphemize 13y agoyep agreed. if you're comfortable with nginx and just want to test something quickly, this is many times better than downloading a framework, setting up, routing, etc.