mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
- Added LoginModal component for user login functionality. - Introduced API routes for user login, favorites, play records, and search history management. - Created JSON files for storing favorites, play records, and search history. - Updated API service to handle new endpoints and refactored data management to use API calls instead of local storage. - Adjusted data structures in types and services to align with new API responses.
25 lines
775 B
TypeScript
25 lines
775 B
TypeScript
import { Router } from "express";
|
|
import searchRouter from "./search";
|
|
import detailRouter from "./detail";
|
|
import doubanRouter from "./douban";
|
|
import imageProxyRouter from "./image-proxy";
|
|
import serverConfigRouter from "./server-config";
|
|
import loginRouter from "./login";
|
|
import favoritesRouter from "./favorites";
|
|
import playRecordsRouter from "./playrecords";
|
|
import searchHistoryRouter from "./searchhistory";
|
|
|
|
const router = Router();
|
|
|
|
router.use(serverConfigRouter);
|
|
router.use(loginRouter);
|
|
router.use(favoritesRouter);
|
|
router.use(playRecordsRouter);
|
|
router.use(searchHistoryRouter);
|
|
router.use("/search", searchRouter);
|
|
router.use("/detail", detailRouter);
|
|
router.use("/douban", doubanRouter);
|
|
router.use("/image-proxy", imageProxyRouter);
|
|
|
|
export default router;
|