refactor: repartition server-side and client-side code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { LoaderFunctionArgs } from '@remix-run/node';
|
||||
import { data } from '@remix-run/node';
|
||||
import { getAuthError } from '~/lib/.server/auth';
|
||||
import { getAuthError } from '~/.server/service/auth';
|
||||
|
||||
/**
|
||||
* 检查认证错误信息的路由
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { LoaderFunctionArgs } from '@remix-run/node';
|
||||
import { logto } from '~/lib/.server/auth';
|
||||
import { logto } from '~/.server/service/auth';
|
||||
import { checkErrorLoader } from './check-error.server';
|
||||
import { userLoader } from './user.server';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { data, type LoaderFunctionArgs } from '@remix-run/node';
|
||||
import { getUser } from '~/lib/.server/auth';
|
||||
import { getUser } from '~/.server/service/auth';
|
||||
|
||||
/**
|
||||
* 用户信息API端点
|
||||
|
||||
Reference in New Issue
Block a user