Trying to understand the logic with the app router here.
Use Case: Client clicks a button, which calls Server that triggers a server side action to create a user in the database, and then return data back to client
Historically, I'd have done an API route, some auth middleware logic if needed.
What's the best practise with the new app router and SSR. Should I still create this API route with middleware, or is there a better way to pass data to the server, without requiring an API route and middleware?