Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/routes/guangsuzy/category.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { CategoryRoute } from '@/types';
import { handler } from '@/utils/cms/category';

export const route: CategoryRoute = {
path: '/category',
name: 'category',
example: '/guangsuzy/category',
description: `获取分类列表`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/guangsuzy/detail.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { DetailRoute } from '@/types';
import { handler } from '@/utils/cms/detail';

export const route: DetailRoute = {
path: '/detail',
name: 'detail',
example: '/guangsuzy/detail',
description: `获取详情`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
14 changes: 14 additions & 0 deletions src/routes/guangsuzy/home.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { HomeRoute } from '@/types';
import { handler } from '@/utils/cms/home';

export const route: HomeRoute = {
path: '/home',
name: 'home',
example: '/guangsuzy/home',
description: `首页分类列表`,
handler: (ctx: Context) => handler(ctx, namespace)
};
14 changes: 14 additions & 0 deletions src/routes/guangsuzy/homeVod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { HomeVodRoute } from '@/types';
import { handler } from '@/utils/cms/homeVod';

export const route: HomeVodRoute = {
path: '/homeVod',
name: 'homeVod',
example: '/guangsuzy/homeVod',
description: `最近更新`,
handler: (ctx: Context) => handler(ctx, namespace)
};
7 changes: 7 additions & 0 deletions src/routes/guangsuzy/namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Namespace } from '@/types';

export const namespace: Namespace = {
name: '光速资源',
url: 'https://api.guangsuapi.com',
description: '光速资源'
};
15 changes: 15 additions & 0 deletions src/routes/guangsuzy/play.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { PlayRoute } from '@/types';
import { handler } from '@/utils/cms/play';

export const route: PlayRoute = {
path: '/play',
name: 'play',
example: '/guangsuzy/play',
description: `获取播放地址`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/guangsuzy/search.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { SearchRoute } from '@/types';
import { handler } from '@/utils/cms/search';

export const route: SearchRoute = {
path: '/search',
name: 'search',
example: '/guangsuzy/search',
description: `关键词搜索`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/kczy/category.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { CategoryRoute } from '@/types';
import { handler } from '@/utils/cms/category';

export const route: CategoryRoute = {
path: '/category',
name: 'category',
example: '/kczy/category',
description: `获取分类列表`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/kczy/detail.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { DetailRoute } from '@/types';
import { handler } from '@/utils/cms/detail';

export const route: DetailRoute = {
path: '/detail',
name: 'detail',
example: '/kczy/detail',
description: `获取详情`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
14 changes: 14 additions & 0 deletions src/routes/kczy/home.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { HomeRoute } from '@/types';
import { handler } from '@/utils/cms/home';

export const route: HomeRoute = {
path: '/home',
name: 'home',
example: '/kczy/home',
description: `首页分类列表`,
handler: (ctx: Context) => handler(ctx, namespace)
};
14 changes: 14 additions & 0 deletions src/routes/kczy/homeVod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { HomeVodRoute } from '@/types';
import { handler } from '@/utils/cms/homeVod';

export const route: HomeVodRoute = {
path: '/homeVod',
name: 'homeVod',
example: '/kczy/homeVod',
description: `最近更新`,
handler: (ctx: Context) => handler(ctx, namespace)
};
7 changes: 7 additions & 0 deletions src/routes/kczy/namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Namespace } from '@/types';

export const namespace: Namespace = {
name: '快车资源',
url: 'https://caiji.kczyapi.com',
description: '快车资源'
};
15 changes: 15 additions & 0 deletions src/routes/kczy/play.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { PlayRoute } from '@/types';
import { handler } from '@/utils/cms/play';

export const route: PlayRoute = {
path: '/play',
name: 'play',
example: '/kczy/play',
description: `获取播放地址`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/kczy/search.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { SearchRoute } from '@/types';
import { handler } from '@/utils/cms/search';

export const route: SearchRoute = {
path: '/search',
name: 'search',
example: '/kczy/search',
description: `关键词搜索`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/lzzy/category.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { CategoryRoute } from '@/types';
import { handler } from '@/utils/cms/category';

export const route: CategoryRoute = {
path: '/category',
name: 'category',
example: '/lzzy/category',
description: `获取分类列表`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/lzzy/detail.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { DetailRoute } from '@/types';
import { handler } from '@/utils/cms/detail';

export const route: DetailRoute = {
path: '/detail',
name: 'detail',
example: '/lzzy/detail',
description: `获取详情`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
14 changes: 14 additions & 0 deletions src/routes/lzzy/home.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { HomeRoute } from '@/types';
import { handler } from '@/utils/cms/home';

export const route: HomeRoute = {
path: '/home',
name: 'home',
example: '/lzzy/home',
description: `首页分类列表`,
handler: (ctx: Context) => handler(ctx, namespace)
};
14 changes: 14 additions & 0 deletions src/routes/lzzy/homeVod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { HomeVodRoute } from '@/types';
import { handler } from '@/utils/cms/homeVod';

export const route: HomeVodRoute = {
path: '/homeVod',
name: 'homeVod',
example: '/lzzy/homeVod',
description: `最近更新`,
handler: (ctx: Context) => handler(ctx, namespace)
};
7 changes: 7 additions & 0 deletions src/routes/lzzy/namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Namespace } from '@/types';

export const namespace: Namespace = {
name: '量子資源',
url: 'https://cj.lziapi.com',
description: '量子資源'
};
15 changes: 15 additions & 0 deletions src/routes/lzzy/play.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { PlayRoute } from '@/types';
import { handler } from '@/utils/cms/play';

export const route: PlayRoute = {
path: '/play',
name: 'play',
example: '/lzzy/play',
description: `获取播放地址`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
15 changes: 15 additions & 0 deletions src/routes/lzzy/search.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Context } from 'hono';

import { namespace } from './namespace';

import { SearchRoute } from '@/types';
import { handler } from '@/utils/cms/search';

export const route: SearchRoute = {
path: '/search',
name: 'search',
example: '/lzzy/search',
description: `关键词搜索`,
handler: (ctx: Context) => handler(ctx, namespace),
method: 'POST'
};
93 changes: 0 additions & 93 deletions src/routes/nangua/category.ts

This file was deleted.

Loading