finalized project
This commit is contained in:
1 parent
b8b3e348e8
commit
4b87e9d20c
15 files changed
+1027
-4
No files matched your search
+2
-1
@@ -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(),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user