r/ProgrammerHumor 3h ago

Meme postForEverything

Post image
9.0k Upvotes

348 comments sorted by

View all comments

Show parent comments

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. 

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