Setu-TS
    Preparing search index...
    • Creates a fully wired REST application. The factory registers the curated REST plugin set, adds the error-handler middleware at priority 0 (outermost per the exceptions contract), and returns the un-started application.

      The caller adds routes and then calls await app.start({ port }).

      Parameters

      Returns IKernelApplication

      An IKernelApplication ready for route registration.

      import { createRestApp } from '@setu-ts/rest-starter';

      const app = createRestApp();
      app.router.get('/hello', (ctx) => ctx.response.text('Hello world'));
      await app.start({ port: 3000 });