<% ' Define starter application routes router.AddRoute "GET", "/home", "HomeController", "Index" router.AddRoute "GET", "/", "HomeController", "Index" router.AddRoute "GET", "", "HomeController", "Index" router.AddRoute "GET", "/404", "ErrorController", "NotFound" ' API docs (Swagger UI) router.AddRoute "GET", "/api/docs", "DocsController", "Index" ' Memory platform API v1 (JSON): memories router.AddRoute "POST", "/api/v1/remember", "ApiMemoriesController", "Remember" router.AddRoute "GET", "/api/v1/memories", "ApiMemoriesController", "Recent" router.AddRoute "GET", "/api/v1/memories/:id", "ApiMemoriesController", "Fetch" router.AddRoute "PATCH", "/api/v1/memories/:id", "ApiMemoriesController", "Correct" router.AddRoute "DELETE", "/api/v1/memories/:id", "ApiMemoriesController", "Forget" router.AddRoute "POST", "/api/v1/memories/:id/retire", "ApiMemoriesController", "Retire" router.AddRoute "GET", "/api/v1/memories/:id/versions", "ApiMemoriesController", "Versions" router.AddRoute "POST", "/api/v1/memories/:id/verifications", "ApiMemoriesController", "Verify" router.AddRoute "POST", "/api/v1/recall", "ApiMemoriesController", "Recall" ' Sessions and working state router.AddRoute "POST", "/api/v1/sessions", "ApiSessionsController", "Start" router.AddRoute "PUT", "/api/v1/sessions/:id/state", "ApiSessionsController", "SaveState" router.AddRoute "GET", "/api/v1/sessions/:id/state", "ApiSessionsController", "RestoreState" router.AddRoute "POST", "/api/v1/sessions/:id/complete", "ApiSessionsController", "Complete" ' Health probes router.AddRoute "GET", "/api/v1/health/live", "ApiHealthController", "Live" router.AddRoute "GET", "/api/v1/health/ready", "ApiHealthController", "Ready" router.AddRoute "GET", "/api/v1/metrics", "ApiHealthController", "Metrics" ' Documents, ingestion and search router.AddRoute "POST", "/api/v1/ingestion/jobs", "ApiDocumentsController", "Ingest" router.AddRoute "GET", "/api/v1/jobs/:id", "ApiDocumentsController", "Job" router.AddRoute "POST", "/api/v1/jobs/:id/retry", "ApiDocumentsController", "Retry" router.AddRoute "GET", "/api/v1/documents/:id", "ApiDocumentsController", "Document" router.AddRoute "GET", "/api/v1/chunks/:id", "ApiDocumentsController", "Chunk" router.AddRoute "POST", "/api/v1/search", "ApiDocumentsController", "Search" ' Context assembly (Phase 3) router.AddRoute "POST", "/api/v1/context", "ApiContextController", "Assemble" ' Learning loop: experiences, candidates and review, evidence, feedback (Phase 3) router.AddRoute "POST", "/api/v1/sessions/:id/events", "ApiLearningController", "RecordEvent" router.AddRoute "GET", "/api/v1/sessions/:id/events", "ApiLearningController", "Events" router.AddRoute "POST", "/api/v1/learn", "ApiLearningController", "Learn" router.AddRoute "GET", "/api/v1/candidates", "ApiLearningController", "Candidates" router.AddRoute "GET", "/api/v1/candidates/:id", "ApiLearningController", "Candidate" router.AddRoute "POST", "/api/v1/candidates/:id/review", "ApiLearningController", "Review" router.AddRoute "GET", "/api/v1/memories/:id/sources", "ApiLearningController", "Sources" router.AddRoute "POST", "/api/v1/feedback", "ApiLearningController", "Feedback" router.AddRoute "POST", "/api/v1/consolidations", "ApiLearningController", "Consolidate" ' Export and import of canonical records (Phase 3) router.AddRoute "POST", "/api/v1/exports", "ApiPortabilityController", "Export" router.AddRoute "POST", "/api/v1/imports", "ApiPortabilityController", "Import" ' Management: namespaces, principals, API keys, grants (spec section 9) router.AddRoute "GET", "/api/v1/me", "ApiAdminController", "WhoAmI" router.AddRoute "GET", "/api/v1/namespaces", "ApiAdminController", "Namespaces" router.AddRoute "POST", "/api/v1/namespaces", "ApiAdminController", "CreateNamespace" router.AddRoute "GET", "/api/v1/principals", "ApiAdminController", "Principals" router.AddRoute "POST", "/api/v1/principals", "ApiAdminController", "CreatePrincipal" router.AddRoute "GET", "/api/v1/principals/:id", "ApiAdminController", "Principal" router.AddRoute "PATCH", "/api/v1/principals/:id", "ApiAdminController", "UpdatePrincipal" router.AddRoute "POST", "/api/v1/principals/:id/keys", "ApiAdminController", "CreateKey" router.AddRoute "DELETE", "/api/v1/keys/:id", "ApiAdminController", "RevokeKey" router.AddRoute "GET", "/api/v1/grants", "ApiAdminController", "Grants" router.AddRoute "POST", "/api/v1/grants", "ApiAdminController", "CreateGrant" router.AddRoute "DELETE", "/api/v1/grants/:id", "ApiAdminController", "DeleteGrant" ' Phase 4: graph relationships (entities, typed edges, bounded traversal) router.AddRoute "POST", "/api/v1/entities", "ApiGraphController", "CreateEntity" router.AddRoute "GET", "/api/v1/entities", "ApiGraphController", "Entities" router.AddRoute "GET", "/api/v1/entities/:id", "ApiGraphController", "Entity" router.AddRoute "PATCH", "/api/v1/entities/:id", "ApiGraphController", "UpdateEntity" router.AddRoute "DELETE", "/api/v1/entities/:id", "ApiGraphController", "DeleteEntity" router.AddRoute "POST", "/api/v1/relate", "ApiGraphController", "Relate" router.AddRoute "GET", "/api/v1/relationships", "ApiGraphController", "Relationships" router.AddRoute "GET", "/api/v1/relationships/:id", "ApiGraphController", "Relationship" router.AddRoute "POST", "/api/v1/relationships/:id/review", "ApiGraphController", "Review" router.AddRoute "DELETE", "/api/v1/relationships/:id", "ApiGraphController", "DeleteRelationship" router.AddRoute "POST", "/api/v1/graph/traverse", "ApiGraphController", "Traverse" ' Dispatch the request (resolves route and executes controller action). ' MVC() is called with parentheses: AxonASP cannot use "MVC.Method args" on a parameterless function. MVC().DispatchRequest Request.ServerVariables("REQUEST_METHOD"), GetRequestPath() %>