Public Access
Implement meeting assistant v1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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})";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user