API Profile Desa Udah Clear, API Menu desa udah clear

API & UI Profile Desa Clear
This commit is contained in:
2025-06-18 15:32:06 +08:00
parent af726043bd
commit 6ed0246cea
20 changed files with 357 additions and 93 deletions

View File

@@ -6,7 +6,7 @@ import { z } from "zod";
const templateForm = z.object({
name: z.string().min(1).max(50),
deskripsi: z.string().min(1).max(50),
deskripsi: z.string().min(1).max(5000),
kategori: z.string().min(1).max(50),
imageId: z.string().min(1).max(50),
content: z.string().min(1).max(5000),

View File

@@ -690,7 +690,7 @@ const profilPerbekel = proxy({
this.error = null;
try {
const response = await fetch(`/api/desa/profile/profil-perbekel/${id}`);
const response = await fetch(`/api/desa/profile/profileperbekel/${id}`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
@@ -762,7 +762,7 @@ const profilPerbekel = proxy({
try {
const response = await fetch(
`/api/desa/profile/profil-perbekel/${this.id}`,
`/api/desa/profile/profileperbekel/${this.id}`,
{
method: "PUT",
headers: { "Content-Type": "application/json" },