refactor invite to its own route and controller

This commit is contained in:
Alex Holliday committed 2024-08-26 17:43:56 -07:00
1 parent 3e63a32669
commit ac37211e32
10 files changed
+161 -35

No files matched your search

+2 -2
View File
@@ -327,7 +327,7 @@ class NetworkService {
*/
async requestInvitationToken(authToken, email, role) {
return this.axiosInstance.post(
`/auth/invite`,
`/invite`,
{ email, role },
{
headers: { Authorization: `Bearer ${authToken}` },
@@ -346,7 +346,7 @@ class NetworkService {
*
*/
async verifyInvitationToken(token) {
return this.axiosInstance.post(`/auth/invite/verify`, {
return this.axiosInstance.post(`/invite/verify`, {
token,
});
}