An open API service indexing awesome lists of open source software.

https://github.com/davisuga/unnamed

A very simple backend framework
https://github.com/davisuga/unnamed

deno typescript

Last synced: about 2 months ago
JSON representation

A very simple backend framework

Awesome Lists containing this project

README

          

# Unnamed web framework

## Disclaimer

This is just a RUSHED layer over Deno's native HTTP api. \
It has no support for middlewares. \
It's obviously not ready for production, but is relatively easy to extend.

## Basic usage

```typescript
import app from "https://deno.land/x/unnamed@0.1.2/mod.ts";

app()
.onGet({
"/hello": () => "Hello world",
"/double/:number": ({ params }) => Number(params?.number) * 2,
})
.onPost({
"/echo": (req) => req.json(),
})
//Works with onDelete and onPut too
.init();
```