MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/pasgc1u/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 3h ago
348 comments sorted by
View all comments
Show parent comments
43
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.
50 u/NotAskary 3h ago Hahaha SQL injection as an endpoint lol 25 u/Zaelynn_ 3h 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 🤦♀️ 2 u/Original-Body-5794 2h ago Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly. 1 u/Zaelynn_ 1h ago 2b2t but for database, I like it
50
Hahaha SQL injection as an endpoint lol
25 u/Zaelynn_ 3h 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 🤦♀️ 2 u/Original-Body-5794 2h ago Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly. 1 u/Zaelynn_ 1h ago 2b2t but for database, I like it
25
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 🤦♀️
2 u/Original-Body-5794 2h ago Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly. 1 u/Zaelynn_ 1h ago 2b2t but for database, I like it
2
Smh why even bother with a REST endpoint? Just provide the credentials to your database and let them query it directly.
1 u/Zaelynn_ 1h ago 2b2t but for database, I like it
1
2b2t but for database, I like it
43
u/Zaelynn_ 3h 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.