Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

Back to Core modulesWired in CoreModule

Core Submodule

route

Manages HTTP/MCP route registry and permission associations.

Source path: libraries/core/src/route

Module file: route.module.ts

Introduction

This page documents the route submodule as part of the Core package. Use it as a quick technical reference for implementation scope, exposed APIs and MCP integration points.

HTTP Endpoints

9 endpoints

List all registered routes with pagination.

Query
page, pageSize, search

Get a route by ID.

Params
routeId (int)

Register a new route.

Body

FieldTypeRequiredNotes
urlstringno
method"GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD"no
type"HTTP" | "MCP"no
tool_namestringnoMCP tool name when type is MCP
namestringno

Update an existing route.

Params
routeId (int)

Body

FieldTypeRequiredNotes
urlstringno
method"GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD"no
type"HTTP" | "MCP"no
tool_namestringno
namestringno

Delete one or more routes.

Body

FieldTypeRequiredNotes
idsnumber[]yesIDs to delete

List roles that have access to a route.

Params
routeId (int)
Query
page, pageSize

Replace the role permissions for a route.

Params
routeId (int)

Body

FieldTypeRequiredNotes
idsnumber[]yesReplacement set of IDs

List screens associated with a route.

Params
routeId (int)
Query
page, pageSize

Replace the screen associations for a route.

Params
routeId (int)

Body

FieldTypeRequiredNotes
idsnumber[]yesReplacement set of IDs

MCP Tools

Named tools callable by AI models via the Model Context Protocol (MCP).

  • core.routes.list

    List all registered routes with pagination

  • core.routes.get

    Get a route by ID

  • core.routes.create

    Register a new HTTP or MCP route

  • core.routes.update

    Update an existing route

  • core.routes.delete

    Delete one or more routes

  • core.routes.roles.list

    List roles that have access to a route

  • core.routes.roles.update

    Replace the role permissions for a route

  • core.routes.screens.list

    List screens associated with a route

  • core.routes.screens.update

    Replace the screen associations for a route