@loopback/docs
Version:
Documentation for LoopBack 4
23 lines (15 loc) • 731 B
Markdown
lang: en
title: 'API docs: openapi-v3.controllerspec.basepath'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.openapi-v3.controllerspec.basepath.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/openapi-v3](./openapi-v3.md) > [ControllerSpec](./openapi-v3.controllerspec.md) > [basePath](./openapi-v3.controllerspec.basepath.md)
## ControllerSpec.basePath property
The base path on which the Controller API is served. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/).
<b>Signature:</b>
```typescript
basePath?: string;
```