Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place
1import { Elysia } from 'elysia' 2import { staticPlugin } from '@elysiajs/static' 3import { openapi, fromTypes } from '@elysiajs/openapi' 4 5export const app = new Elysia() 6 .use( 7 openapi({ 8 references: fromTypes() 9 }) 10 ) 11 .use( 12 await staticPlugin({ 13 prefix: '/' 14 }) 15 ) 16 .get('/message', { message: 'Hello from server' } as const) 17 .listen(3000) 18 19console.log( 20 `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}` 21)