mirror of
https://github.com/wg-easy/wg-easy.git
synced 2026-08-27 12:23:37 +00:00
exclude i18n from setup middleware
This commit is contained in:
parent
51558c7027
commit
32a055093a
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ export default defineEventHandler(async (event) => {
|
|||
const url = getRequestURL(event);
|
||||
|
||||
// User can't be logged in, and public routes can be accessed whenever
|
||||
if (url.pathname.startsWith('/api/')) {
|
||||
if (url.pathname.startsWith('/api/') || url.pathname.startsWith('/_i18n/')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue