| [ Web Proxy ] |
| Viewing: https://adminforth.dev/docs/api/Back/interfaces/IHttpServer/ | [Back] [Original] |
Implement this interface to create custom HTTP server adapter for AdminForth.
endpoint(
options):void
Method which should register endpoint in HTTP server.
| Parameter | Type | Description |
|---|---|---|
options | IAdminForthAuthenticatedEndpointOptions | : Object with method, path and handler properties. |
void
endpoint(
options):void
| Parameter | Type |
|---|---|
options | IAdminForthNoAuthEndpointOptions |
void
setupSpaServer():
void
Sets up HTTP server to serve AdminForth SPA.
if hotReload is true, it should proxy all requests and headers to Vite dev server at http://localhost:5173$\{req.url\}
otherwise it should serve AdminForth SPA from dist folder. See Express for example.
void
| Web Proxy Viewer | New URL | Original Page |