Chore: Move Files
解决后端代码部署问题,需要将所有依赖移动到 api 文件夹下
This commit is contained in:
+3
-3
@@ -1,9 +1,9 @@
|
||||
import { Api, Get, Query, useContext } from "@midwayjs/hooks";
|
||||
|
||||
import { getSong } from "../utils/netease";
|
||||
import { getSong } from "./utils/netease";
|
||||
|
||||
import { client } from "../utils/redis";
|
||||
import { prisma } from "../utils/prisma";
|
||||
import { client } from "./utils/redis";
|
||||
import { prisma } from "./utils/prisma";
|
||||
import { ACGM, Prisma } from "@prisma/client";
|
||||
|
||||
export default Api(
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { Api, Get, Query, useContext } from "@midwayjs/hooks";
|
||||
import fetch from "isomorphic-unfetch";
|
||||
|
||||
import { client } from "../utils/redis";
|
||||
import { client } from "./utils/redis";
|
||||
|
||||
export default Api(
|
||||
Get(),
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { Api, Get, Query, useContext } from '@midwayjs/hooks';
|
||||
|
||||
import { getSong } from "../utils/netease";
|
||||
import { getSong } from "./utils/netease";
|
||||
|
||||
import { client } from '../utils/redis';
|
||||
import { client } from './utils/redis';
|
||||
|
||||
export default Api(
|
||||
Get(),
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { Api, Get } from "@midwayjs/hooks";
|
||||
|
||||
import { client } from "../utils/redis";
|
||||
import { client } from "./utils/redis";
|
||||
|
||||
export default Api(
|
||||
Get(),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Api, Get, Query, useContext } from "@midwayjs/hooks";
|
||||
|
||||
import { source } from "../data/wallpaper";
|
||||
import { source } from "./data/wallpaper";
|
||||
import { random } from "lodash";
|
||||
import { client } from "../utils/redis";
|
||||
import { client } from "./utils/redis";
|
||||
|
||||
export default Api(
|
||||
Get(),
|
||||
|
||||
Reference in New Issue
Block a user