- Rename solution files: TeamsISO.sln/slnf -> Dragon-ISO.sln/slnf - Rename all src/TeamsISO.* directories and project files to src/Dragon-ISO.* equivalents - Update .gitignore to exclude build/test output logs - Update ci.yml, CHANGELOG.md, build-and-test.ps1, docs references Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
664 B
C#
19 lines
664 B
C#
using System.Collections.Specialized;
|
|
using System.Text.Json;
|
|
|
|
namespace DragonISO.App.Services;
|
|
|
|
// /notes/* route handlers — append-only operator show-notes file.
|
|
//
|
|
// POST /notes (body: { "text": "..." }) → AppendNote
|
|
public sealed partial class ControlSurfaceServer
|
|
{
|
|
private object AppendNote(JsonElement body, NameValueCollection query)
|
|
{
|
|
var text = TryGetString(body, query, "text");
|
|
if (string.IsNullOrWhiteSpace(text))
|
|
return new { ok = false, error = "text required" };
|
|
var ok = NotesService.Append(text);
|
|
return new { ok, action = "note", path = NotesService.TodayPath };
|
|
}
|
|
}
|