Replies: 1 comment
-
| If you're calling the server endpoint in a  
 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Is there already a pattern that exists for this? This would bring some performance improvements by localizing web server to web server calls, but it also allows me to greatly simplify/skip handling extra authentication (I could just read from locals).
Essentially, this allows me to reuse the endpoint function... instead of having to abstract them into some async utility function elsewhere, and then call the endpoint only when it's from the browser, and call the function from my library only when it's on the server.
Beta Was this translation helpful? Give feedback.
All reactions