Generation

generate functionTue, 15 Nov 2022

nuxt catch all route split drupal and shopware

function parseURL(url: string, drupal: boolean): { path: string, query: string } { const split = url.split('?'); const path = split[0]; const query = split[1]; const drupalPath = `${path}?${query}`; return { path, query, drupalPath, }; }

TypeScript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code