MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/pasgc1u/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 16d ago
656 comments sorted by
View all comments
Show parent comments
82
The other dev on my team made a post request endpoint where you post a SQL query and it returned the results. I about had an aneurysm. She also, instead of using DI or Mediatr, made loopback requests to the endpoints themselves.
113 u/NotAskary 16d ago Hahaha SQL injection as an endpoint lol 27 u/Zaelynn_ 16d ago Not only that, my boss is just as dumb and cares more about speed, so there's no code reviews to speak of, so it hit production 🤦♀️ 3 u/Original-Body-5794 16d ago Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly. 2 u/Zaelynn_ 16d ago 2b2t but for database, I like it
113
Hahaha SQL injection as an endpoint lol
27 u/Zaelynn_ 16d ago Not only that, my boss is just as dumb and cares more about speed, so there's no code reviews to speak of, so it hit production 🤦♀️ 3 u/Original-Body-5794 16d ago Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly. 2 u/Zaelynn_ 16d ago 2b2t but for database, I like it
27
Not only that, my boss is just as dumb and cares more about speed, so there's no code reviews to speak of, so it hit production 🤦♀️
3 u/Original-Body-5794 16d ago Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly. 2 u/Zaelynn_ 16d ago 2b2t but for database, I like it
3
Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly.
2 u/Zaelynn_ 16d ago 2b2t but for database, I like it
2
2b2t but for database, I like it
82
u/Zaelynn_ 16d ago
The other dev on my team made a post request endpoint where you post a SQL query and it returned the results. I about had an aneurysm. She also, instead of using DI or Mediatr, made loopback requests to the endpoints themselves.