Switch to production endpoint for v2 upload

This commit is contained in:
Max Wofford 2020-11-24 19:26:01 -05:00
parent facac3b246
commit 387b549cb4

View file

@ -4,7 +4,7 @@ import { endpoint, ensurePost, parseBody } from "./utils.ts";
// Other functions can import this function to call this serverless endpoint
export const uploadEndpoint = async (url: string) => {
const response = await fetch("http://localhost:3000/api/v2/upload", {
const response = await fetch("https://cdn.hackclub.com/api/v2/upload", {
method: "POST",
body: url,
});