UNPKG

@attributech/nuxt-drupal-utils

Version:

Shared utilities for Nuxt 3 projects with Drupal backend

6 lines (5 loc) 188 B
import { getServerUrl } from "./getServerUrl.js"; export const getApiUrl = function(defaultServerUrl) { const serverUrl = getServerUrl(defaultServerUrl); return `${serverUrl}/api`; };