diff --git a/src/components/layout/Sidebar.vue b/src/components/layout/Sidebar.vue index dc22bfd..37c0579 100644 --- a/src/components/layout/Sidebar.vue +++ b/src/components/layout/Sidebar.vue @@ -79,11 +79,6 @@ const menuItems = ref([ items: [ { label: 'Registro de Activos', icon: 'pi pi-building', to: '/fixed-assets' }, { label: 'Asignacion a Empleado', icon: 'pi pi-send', to: '/fixed-assets/assignments' }, - { label: 'Estructura de Activos', icon: 'pi pi-sitemap', to: '/fixed-assets/structures' }, - // { label: 'Marcas', icon: 'pi pi-building', to: '/fixed-assets/brands' }, - // { label: 'Modelos', icon: 'pi pi-building', to: '/fixed-assets/models' }, - // { label: 'Estados', icon: 'pi pi-building', to: '/fixed-assets/states' }, - // { label: 'Ubicaciones', icon: 'pi pi-building', to: '/fixed-assets/locations' }, ], }, { diff --git a/src/modules/auth/services/authService.ts b/src/modules/auth/services/authService.ts index a93edfb..216d244 100644 --- a/src/modules/auth/services/authService.ts +++ b/src/modules/auth/services/authService.ts @@ -53,7 +53,7 @@ class AuthService { */ async register(data: RegisterData): Promise { try { - const response = await api.post('/auth/register', data); + const response = await api.post('/api/auth/register', data); return response.data; } catch (error: any) { throw new Error(error.response?.data?.message || 'Error al registrar usuario'); @@ -88,7 +88,7 @@ class AuthService { */ async getCurrentUser(): Promise { try { - const response = await api.get('/auth/me'); + const response = await api.get('/api/auth/me'); return response.data; } catch (error: any) { throw new Error(error.response?.data?.message || 'Error al obtener usuario'); @@ -100,7 +100,7 @@ class AuthService { */ async updateProfile(data: Partial): Promise { try { - const response = await api.put('/auth/profile', data); + const response = await api.put('/api/auth/profile', data); return response.data; } catch (error: any) { throw new Error(error.response?.data?.message || 'Error al actualizar perfil'); @@ -126,7 +126,7 @@ class AuthService { */ async forgotPassword(email: string): Promise { try { - await api.post('/auth/forgot-password', { email }); + await api.post('/api/auth/forgot-password', { email }); } catch (error: any) { throw new Error(error.response?.data?.message || 'Error al solicitar recuperación'); } @@ -137,7 +137,7 @@ class AuthService { */ async resetPassword(token: string, password: string): Promise { try { - await api.post('/auth/reset-password', { token, password }); + await api.post('/api/auth/reset-password', { token, password }); } catch (error: any) { throw new Error(error.response?.data?.message || 'Error al resetear contraseña'); } diff --git a/src/modules/fixed-assets/components/FixedAssetsIndex.vue b/src/modules/fixed-assets/components/FixedAssetsIndex.vue index ca7d6b4..9bbc79e 100644 --- a/src/modules/fixed-assets/components/FixedAssetsIndex.vue +++ b/src/modules/fixed-assets/components/FixedAssetsIndex.vue @@ -1,5 +1,5 @@