UNPKG

@izzyjs/route

Version:

Use your AdonisJs routes in your Inertia.js application

9 lines (8 loc) 303 B
import { Route, Routes } from '../route.js'; import builder from '../builder.js'; export function route(routeName, options) { return Route.new(routeName, options?.params, options?.qs, options?.prefix, options?.hash); } route.current = Routes.current; route.new = Route.new; route.builder = builder;