sdf
This commit is contained in:
@@ -12,7 +12,7 @@ function Register({ setIsLoggedIn }) {
|
||||
const handleRegister = async (e) => {
|
||||
e.preventDefault();
|
||||
try {
|
||||
const res = await axios.post('http://localhost:5000/register', { username, email, password });
|
||||
const res = await axios.post('https://congenial-waddle-9w9749vg9q9cr49-5000.app.github.dev/register', { username, email, password });
|
||||
setMessage(res.data.message);
|
||||
setIsLoggedIn(true);
|
||||
navigate('/');
|
||||
|
||||
Reference in New Issue
Block a user