UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

35 lines (22 loc) 810 B
--- lang: en title: 'API docs: rest.restserver.basepath' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest permalink: /doc/en/lb4/apidocs.rest.restserver.basepath.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestServer](./rest.restserver.md) &gt; [basePath](./rest.restserver.basepath.md) ## RestServer.basePath() method Configure the `basePath` for the rest server <b>Signature:</b> ```typescript basePath(path?: string): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | path | string | Base path | <b>Returns:</b> void