From a61e73c33b2e80d5af58e3dcfa2efe74245cd065 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:19:14 -0700 Subject: refactor: project maintenance - work in progress --- config/cors.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'config/cors.ts') diff --git a/config/cors.ts b/config/cors.ts index dc0e3f6..911326f 100644 --- a/config/cors.ts +++ b/config/cors.ts @@ -1,13 +1,6 @@ -/** - * Config source: https://git.io/JfefC - * - * Feel free to let us know via PR, if you find something broken in this config - * file. - */ +import { defineConfig } from '@adonisjs/cors' -import { CorsConfig } from '@ioc:Adonis/Core/Cors'; - -const corsConfig: CorsConfig = { +const corsConfig = defineConfig({ /* |-------------------------------------------------------------------------- | Enabled @@ -129,6 +122,6 @@ const corsConfig: CorsConfig = { | */ maxAge: 90, -}; +}) -export default corsConfig; +export default corsConfig -- cgit v1.2.3-70-g09d2