docs/docs/api/strapi-server.mdx
import Type from '@site/docs/api/components/type';
:::info
Current state: Stable
:::
The Strapi server module permits to generate a Strapi http server.
createServer(strapi)strapi: <Type>Strapi</Type>const server = createServer(strapi);
server.listRoutes();
StrapiServer.appStrapi projects are using KoaJS to run the NodeJS server.
StrapiServer.routerStrapi projects are using a dependency of KoaJS called @koa/router.
StrapiServer.httpServerThe Strapi's HTTP server.
StrapiServer.api(name)name: <Type>String</Type>Getter for apis available in Strapi
StrapiServer.use(...args)Shortcut for Koa app.use(...args) method.
StrapiServer.routes(routes):::info TODO :::
StrapiServer.mount():::info TODO :::
StrapiServer.initRouting():::info TODO :::
StrapiServer.initMiddlewares():::info TODO :::
StrapiServer.listRoutes():::info TODO :::
StrapiServer.listen(...args):::info TODO :::
StrapiServer.destroy():::info TODO :::
StrapiAPIs<Type>Object</Type>
content-api: <Type>API</Type>
admin: <Type>API</Type>
Strapi APIs is a map of all APIs available inside the Strapi project.