Skip to content

Instantly share code, notes, and snippets.

View matheusmacedoap's full-sized avatar

Matheus Macedo matheusmacedoap

  • Farmácias Pague Menos
  • Fortaleza, CE - Brasil
  • 23:14 (UTC -03:00)
  • X @matheusmacedoap
View GitHub Profile
@matheusmacedoap
matheusmacedoap / routes.ts
Created November 23, 2024 23:57
Quasar Automatic Routes
import { RouteRecordRaw } from 'vue-router';
const layoutsImport = import.meta.glob('layouts/**/*.vue');
const pagesImport = import.meta.glob('pages/**/*.vue');
const pageRegex = /\.\/pages\/(.*)\.vue$/;
const layoutRegex = /\.\/layouts\/(.*)\.vue$/;
const routes: RouteRecordRaw[] = [
{