I see. The route remains the same, but you need to add a signup handler. Here is the documentation for it:
If you are using App Router, your path would be app/api... instead of pages/api...
app/api...
pages/api...
Hope that helps