feat: change to denosaurs router (#20)

This commit is contained in:
Leo K
2021-06-03 11:11:04 +02:00
committed by GitHub
parent a0bb5c05ee
commit a48da64dc3
6 changed files with 70 additions and 69 deletions
+6 -4
View File
@@ -1,5 +1,7 @@
import { oak } from "../../api_deps.ts";
export default (ctx: oak.Context) => {
ctx.response.body = { name: "fresh" };
export default () => {
return new Response(JSON.stringify({ name: "fresh" }), {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
});
};