Skip to content

Commit

Permalink
feat: added useDirectusUrl hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Mar 23, 2022
1 parent e38a23d commit a722130
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/composables/useDirectusUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { useRuntimeConfig } from "#app";

export const useDirectusUrl = (): string => {
const config = useRuntimeConfig();
return config.directus.url;
};

0 comments on commit a722130

Please sign in to comment.