Last updated
import { Controller, GET, Cors } from "https://deno.land/x/mandarinets/mod.ts";
@Controller('/api')
@Cors({ origin: "https://myorigin.com" })
export class MyApi {
@GET('/hello')
public handler() {
return "hello";
}
}import { Controller, GET, Cors } from "https://deno.land/x/mandarinets/mod.ts";
@Controller('/api')
export class MyApi {
@GET('/hello')
@Cors({ origin: "https://myorigin.com" })
public handler() {
return "hello";
}
}