LEARN BY DOING

EXAMPLES.

Copy. Paste. Ship secure.

server.ts
1import { nalth } from 'nalth'
2
3const app = nalth()
4
5app.get('/', () => {
6 return { message: 'Protected by default' }
7})
8
9app.listen(3000)