Public Access
18 lines
606 B
C#
18 lines
606 B
C#
namespace MeetingAssistant.MeetingNotes;
|
|
|
|
public static class MeetingNoteActionLinks
|
|
{
|
|
public static string CreateSummaryRetryLink(
|
|
string publicBaseUrl,
|
|
string summaryPath,
|
|
string label = "Retry summary generation")
|
|
{
|
|
var baseUrl = string.IsNullOrWhiteSpace(publicBaseUrl)
|
|
? "http://localhost:5090"
|
|
: publicBaseUrl.TrimEnd('/');
|
|
var summaryFileName = Path.GetFileName(summaryPath);
|
|
var url = $"{baseUrl}/meetings/summary/retry?summaryPath={Uri.EscapeDataString(summaryFileName)}";
|
|
return $"[{label}]({url})";
|
|
}
|
|
}
|