mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor(imports): replace relative imports with path aliases (#2741)
This commit is contained in:
1 parent
a59b80ce11
commit
84dcf6b8a8
1834 files changed
+11601
-10725
No files matched your search
@@ -1,9 +1,9 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type {HonoEnv} from '@app/api/types/HonoEnv';
|
||||
import {Locales} from '@fluxer/constants/src/Locales';
|
||||
import {parseAcceptLanguage} from '@pkgs/locale/src/LocaleService';
|
||||
import {createMiddleware} from 'hono/factory';
|
||||
import type {HonoEnv} from '../types/HonoEnv';
|
||||
|
||||
export const LocaleMiddleware = createMiddleware<HonoEnv>(async (ctx, next) => {
|
||||
const acceptLanguage = ctx.req.header('accept-language');
|
||||
|
||||
Reference in new issue
Block a user