finalized project

This commit is contained in:
didier amyot committed 2023-06-13 14:05:09 -04:00
1 parent b8b3e348e8
commit 4b87e9d20c
15 files changed
+1027 -4

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
import { Application, Router } from './deps.ts';
import { Application, Router, oakCors } from './deps.ts';
import { buildAPI } from './restapi.ts';
import { DenoKVFileService } from './services/mod.ts';
import { WaveFrontServiceImpl } from './services/wavefrontService.ts';
@@ -10,6 +10,7 @@ async function main() {
const waveFrontService = new WaveFrontServiceImpl();
const router = new Router({ prefix: '/v1' });
app.use(oakCors({ origin: /^.+localhost:7766$/ }));
app.use(
buildAPI(router, fileService, waveFrontService).routes(),
);