time chart int

This commit is contained in:
2025-04-08 07:46:20 +08:00
parent 4e7266240d
commit 6940d60510
8 changed files with 541 additions and 39 deletions

View File

@@ -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