feat(auth): implement registration page and logic

This commit is contained in:
Mrixs committed 2025-06-17 08:46:35 +03:00
1 parent df460f57ab
commit c4a1c2cde0
6 files changed
+200 -5

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import type { RegisterRequest } from "@/types"; // Мы создадим этот тип
import apiClient from "./axios";
export const registerUser = (userData: RegisterRequest) => {
// apiClient уже настроен на /api, поэтому путь относительный
return apiClient.post("/register", userData);
};