umstellung auf claud

This commit is contained in:
marco committed 2026-12-04 10:14:49 +01:00
1 parent 79c5f0c5cd
commit 5bb4e063da
171 files changed
+5471 -1333

No files matched your search

+4 -3
View File
@@ -1,10 +1,11 @@
'use server';
import { BACKEND_URL } from '@/_config/backend';
import { revalidatePath } from 'next/cache';
import { UnitTemplate, UnitTemplateData } from '@/types/anlagen/unit-templates';
import { UnitCopy, UnitResponse } from '@/types/anlagen/units';
const url = 'http://localhost:3000/rk2/unit-templates';
const url = BACKEND_URL + '/rk2/unit-templates';
async function request<T>(path: string, method: string, data?: unknown): Promise<ActionResult<T>> {
try {
const response = await fetch(url + path, {
@@ -32,8 +33,8 @@ export async function api_templates_insert(id: string, data: UnitCopy) {
if (result.success) {
revalidatePath('/units');
revalidatePath('/signals');
revalidatePath('/signals/assignment');
revalidatePath('/signals/assignments');
revalidatePath('/hardware/io-zuordnung');
revalidatePath('/hardware/zuordnung-uebersicht');
}
return result;
}