UNPKG

baked-recipe-admin

Version:

Baked is an opinionated framework for .NET in backend and Nuxt in frontend. This is a recipe package that brings together all the components one needs for an Admin UI.

16 lines (11 loc) 286 B
import { useRoute, useRuntimeConfig } from "#app"; export default function() { const { public: { auth } } = useRuntimeConfig(); function compute() { const route = useRoute(); return `/${auth.loginPageRoute}?redirect=${route.fullPath}`; } return { compute }; }