deno.land / x / alosaur@v1.1.1 / examples / cors / app.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { HomeArea } from "./areas/home/home.area.ts";import { App, CorsBuilder } from "alosaur/mod.ts";
const app = new App({ areas: [HomeArea],});
app.useCors( new CorsBuilder() .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader(),);
app.listen();
alosaur

Version Info

Tagged at
a year ago