5 ms·
What is the code in this app written in, I don't really follow?
by llimllib 16y ago
What is the code in this app written in, I don't really follow?
- apgwoz 16y agoIt seems as though you write the SQL in the nginx conf... Not sure if it's then somehow available elsewhere.
- deleted 16y ago[deleted]
- turtle4 16y agoYou specify a route in the nginx config, and when the route is requested, it serves up the result of the sql query that you specified. Even further, it looks like it will run different queries, depending on the type of request made (GET, PUT, DELETE). This just makes it a little easier to put together a RESTful app. Alot of those apps are just thin wrappers around the request that check the request type, check authentication, and then perform a simple db statement. This is easier to define, and apparently alot faster.
- piotrSikora 16y agoYup, that's exactly the idea here :)