Logo
\ `hek-yĆ¼-ap \ v0.8.1

# createApp

import { createApp } from 'kequapp';

The createApp function is the entry point of your application. It prepares your app to handle incoming requests and serves as the main event handler for Node's createServer method.

It is otherwise identical to the createBranch function.

Example

const app = createApp({
    routes: [
        {
            method: 'GET',
            url: '/',
            actions: [() => 'Hello world!'],
        },
    ],
});