Docker compose. dev.yml erstellt

This commit is contained in:
Nirodan
2025-06-17 10:43:22 +02:00
parent 2961081c06
commit b6399f8b52
3 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ function LoginForm() {
const login = async () => {
try {
const res = await axios.post('/login', { username, password }); // ruft POST /api/login auf
const res = await axios.post('/api/login', { username, password });
localStorage.setItem('token', res.data.token);
localStorage.setItem('role', res.data.role);
navigate('/');