MacZZi
04/04/2022, 12:38 PMrp_st
04/04/2022, 12:41 PMmiddleware
function and they are to be exposed in /auth/*
route. For example, the sign in API is /auth/signin
, the sign up API is /auth/signup
.
So in this step, you are creating a file that will handle all /auth/*
requests and pass the request to our middleware function which will detect the path and method and handle the API accordingly. \MacZZi
04/04/2022, 12:44 PMrp_st
04/04/2022, 12:45 PMrp_st
04/04/2022, 12:45 PMverifySession
rp_st
04/04/2022, 12:45 PMMacZZi
04/04/2022, 12:46 PM