summaryrefslogtreecommitdiff
path: root/examples/index.js
blob: 64a619b124e8cc3fdde425d21bcba1a919c1d56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Index {
    constructor() {}

    async Main() {
        return {
            html: `
                <section>
                <h1>Welcome to <a href='https://git.fatalmatrix.xyz/cosmic.git'>Cosmic</a>!</h1>
                <p>Please read the README.md</p>
                </section>
            `,
            meta: {
                keywords: 'Cosmic',
                description: 'Welcome to Cosmic!'
            }
        }
    }
}

module.exports = (x) => {return new Index(x)}