From 8745affeb5abb6f792f356cc4808893eb60fb6f7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Aug 2023 18:04:02 +0200 Subject: [PATCH] Move API-related hooks to `(api)` --- todoblue/src/app/{[lang] => (api)}/useHttpBaseURL.ts | 0 todoblue/src/app/{[lang] => (api)}/useWs.ts | 0 todoblue/src/app/{[lang] => (api)}/useWsBaseURL.ts | 2 +- todoblue/src/app/[lang]/board/[board]/useBoardWs.ts | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename todoblue/src/app/{[lang] => (api)}/useHttpBaseURL.ts (100%) rename todoblue/src/app/{[lang] => (api)}/useWs.ts (100%) rename todoblue/src/app/{[lang] => (api)}/useWsBaseURL.ts (75%) diff --git a/todoblue/src/app/[lang]/useHttpBaseURL.ts b/todoblue/src/app/(api)/useHttpBaseURL.ts similarity index 100% rename from todoblue/src/app/[lang]/useHttpBaseURL.ts rename to todoblue/src/app/(api)/useHttpBaseURL.ts diff --git a/todoblue/src/app/[lang]/useWs.ts b/todoblue/src/app/(api)/useWs.ts similarity index 100% rename from todoblue/src/app/[lang]/useWs.ts rename to todoblue/src/app/(api)/useWs.ts diff --git a/todoblue/src/app/[lang]/useWsBaseURL.ts b/todoblue/src/app/(api)/useWsBaseURL.ts similarity index 75% rename from todoblue/src/app/[lang]/useWsBaseURL.ts rename to todoblue/src/app/(api)/useWsBaseURL.ts index 4c70813..ac141b8 100644 --- a/todoblue/src/app/[lang]/useWsBaseURL.ts +++ b/todoblue/src/app/(api)/useWsBaseURL.ts @@ -1,4 +1,4 @@ -import {useHttpBaseURL} from "@/app/[lang]/useHttpBaseURL" +import {useHttpBaseURL} from "@/app/(api)/useHttpBaseURL" /** diff --git a/todoblue/src/app/[lang]/board/[board]/useBoardWs.ts b/todoblue/src/app/[lang]/board/[board]/useBoardWs.ts index 128e16e..d4fdd4f 100644 --- a/todoblue/src/app/[lang]/board/[board]/useBoardWs.ts +++ b/todoblue/src/app/[lang]/board/[board]/useBoardWs.ts @@ -2,9 +2,9 @@ import {BoardAction} from "@/app/[lang]/board/[board]/Types" import {useBoardState} from "@/app/[lang]/board/[board]/useBoardState" -import {useWsBaseURL} from "@/app/[lang]/useWsBaseURL" +import {useWsBaseURL} from "@/app/(api)/useWsBaseURL" import {useCallback, useMemo} from "react" -import {useWs, WebSocketHandlerParams} from "@/app/[lang]/useWs" +import {useWs, WebSocketHandlerParams} from "@/app/(api)/useWs" export function useBoardWs(name: string) {