Path: redb/redb.Templates/templates/redb-identity-app/RedbIdentityApp.Module/Controllers/NotesController.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-identity-app/RedbIdentityApp.Module/Controllers/NotesController.cs
----
using redb.Core.Models.Entities;
using redb.Route.Controllers.Attributes;
using RedbIdentityApp.Contracts;
using RedbIdentityApp.Module.Props;
namespace RedbIdentityApp.Module.Controllers;
///
/// The notes of the signed-in user. Every query is filtered by the token's subject: a user never reaches
/// another user's note, not even by its id.
///
[Route("/api/notes")]
public sealed class NotesController : ApiController
{
/// GET /api/notes: the caller's notes, newest first.
[HttpGet]
public async Task