Skip to content

Commit 413ed45

Browse files
committed
prettier
1 parent b34d7ca commit 413ed45

File tree

1 file changed

+7
-4
lines changed
  • packages/convex-helpers/server

1 file changed

+7
-4
lines changed

packages/convex-helpers/server/cors.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ export type CorsConfig = {
8484
export type RouteSpecWithCors = RouteSpec & CorsConfig;
8585

8686
/**
87-
* An HttpRouter with built in cors support.
88-
*/
87+
* An HttpRouter with built in cors support.
88+
*/
8989
export type CorsHttpRouter = {
90-
http: HttpRouter
90+
http: HttpRouter;
9191
route: (routeSpec: RouteSpecWithCors) => void;
9292
};
9393

@@ -96,7 +96,10 @@ export type CorsHttpRouter = {
9696
* @param allowedOrigins An array of allowed origins for CORS.
9797
* @returns A function to use instead of http.route when you want CORS.
9898
*/
99-
export const corsRouter = (http: HttpRouter, corsConfig?: CorsConfig): CorsHttpRouter => {
99+
export const corsRouter = (
100+
http: HttpRouter,
101+
corsConfig?: CorsConfig,
102+
): CorsHttpRouter => {
100103
const allowedExactMethodsByPath: Map<string, Set<string>> = new Map();
101104
const allowedPrefixMethodsByPath: Map<string, Set<string>> = new Map();
102105
return {

0 commit comments

Comments
 (0)