time chart int
This commit is contained in:
@@ -111,6 +111,7 @@ export async function GET(request: NextRequest) {
|
||||
// Format the data to match what our store expects
|
||||
const formattedShortlink = {
|
||||
id: shortlink.id || '',
|
||||
externalId: shortlink.external_id || '',
|
||||
slug: shortlink.slug || '',
|
||||
originalUrl: shortlink.original_url || '',
|
||||
title: shortlink.title || '',
|
||||
@@ -122,6 +123,8 @@ export async function GET(request: NextRequest) {
|
||||
domain: new URL(shortUrl || 'https://example.com').hostname
|
||||
};
|
||||
|
||||
console.log('Shortlink data formatted with externalId:', shortlink.external_id, 'Final object:', formattedShortlink);
|
||||
|
||||
const response: ApiResponse<typeof formattedShortlink> = {
|
||||
success: true,
|
||||
data: formattedShortlink
|
||||
|
||||
Reference in New Issue
Block a user