feat(api-server): Add websocket as /api/v1/ws route (#3707)

Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
Johannes7k75
2025-09-05 18:17:32 +02:00
committed by GitHub
parent 8b10872e83
commit cb85048af4
21 changed files with 194 additions and 20 deletions

View File

@ -1,9 +1,7 @@
import { createRoute, z } from '@hono/zod-openapi';
import { ipcMain } from 'electron';
import getSongControls from '@/providers/song-controls';
import {
LikeType,
type RepeatMode,
@ -25,6 +23,7 @@ import {
SwitchRepeatSchema,
type ResponseSongInfo,
} from '../scheme';
import { API_VERSION } from '../api-version';
import type { SongInfo } from '@/providers/song-info';
import type { BackendContext } from '@/types/contexts';
@ -33,8 +32,6 @@ import type { HonoApp } from '../types';
import type { QueueResponse } from '@/types/youtube-music-desktop-internal';
import type { Context } from 'hono';
const API_VERSION = 'v1';
const routes = {
previous: createRoute({
method: 'post',