Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aleph/server/mod.ts>Aleph#getAPIRoute

The Full-stack Framework in Deno.
Very Popular
Go to Latest
method Aleph.prototype.getAPIRoute
Re-export
import { Aleph } from "https://deno.land/x/aleph@v0.3.0-beta.2/server/mod.ts";

get api route by the given location.

Parameters

location: { pathname: string; search?: string; }

Returns

Promise<[RouterURL, Module] | null>