fix add new withCorsMiddleware
This commit is contained in:
1 parent
ca8ca913a8
commit
a4851bd0b6
3 files changed
+16
-5
No files matched your search
+2
-2
@@ -3,7 +3,7 @@ import pjson from "@/package.json";
|
||||
import { withSwagger } from "next-swagger-doc";
|
||||
|
||||
import { withCors } from "@lib/helpers/withCors";
|
||||
import { withMiddleware } from "@lib/helpers/withMiddleware";
|
||||
import { withCorsMiddleware } from "@lib/helpers/withCorsMiddleware";
|
||||
|
||||
const swaggerHandler = withSwagger({
|
||||
definition: {
|
||||
@@ -19,4 +19,4 @@ const swaggerHandler = withSwagger({
|
||||
tags: ["users", "teams", "memeberships"],
|
||||
sort: true,
|
||||
});
|
||||
export default withMiddleware(withCors)(swaggerHandler());
|
||||
export default withCorsMiddleware()(swaggerHandler());
|
||||
Reference in new issue
Block a user