Skip to content

Commit

Permalink
🐛 (api) Pinned endpoint base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Jun 2, 2021
1 parent 244804c commit 0939477
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions api/_constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const BASE_URL = "https://registerable.vercel.app/";
3 changes: 2 additions & 1 deletion api/check_name_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { assertEquals } from "../dev_deps.ts";
import { RegisterableResult } from "../types/mod.ts";
import { REGISTRIES } from "../constants/registry.ts";
const BASE_URL = "https://registerable-cpqkjhmf3-tomoki-miyauci.vercel.app/";
import { BASE_URL } from "./_constants.ts";

const ENTPOINT = new URL(
"check-name",
BASE_URL,
Expand Down
6 changes: 2 additions & 4 deletions api/stringify.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Registry } from "../types/mod.ts";
const BASE_URL = "https://registerable-cpqkjhmf3-tomoki-miyauci.vercel.app/";
import { BASE_URL } from "./_constants.ts";

const stringify = (
val: { name: string; registry: Registry[] },
): string => {
const stringify = (val: { name: string; registry: Registry[] }): string => {
const url = new URL("check-name", BASE_URL);
url.search = constructSearchParams(val).toString();

Expand Down

0 comments on commit 0939477

Please sign in to comment.