Skip to content

Commit

Permalink
fear: add new features.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryOkafor committed Mar 17, 2024
1 parent 0955a52 commit 5631af1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/src/app/actions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import {apiVersion, baseUrl, apiKey} from "@/app/config/apiConfig";
import {apiKey, apiVersion, baseUrl} from "@/app/config/apiConfig";
import {ShortLink} from "@/app/interfaces";

export async function createShortLink(
Expand Down Expand Up @@ -31,9 +31,7 @@ export async function showAllLinks(): Promise<[ShortLink]> {
'X-Api-Key': apiKey,
}
});
const res = await response.json()
console.log("Binding: ", res)
return res
return await response.json()
}

export async function getShortLink(shortCode: String): Promise<ShortLink> {
Expand Down

0 comments on commit 5631af1

Please sign in to comment.