Skip to content

Commit 074eb18

Browse files
authored
Update ToriAllowRemoteOrigin.swift
1 parent c4adca5 commit 074eb18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/ToriAllowRemoteOrigin.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
**/
1616

1717
import Foundation
18-
1918
import Kitura
2019

21-
private typealias AllowRemoteMiddlware = RouterMiddleware
22-
public class AllowRemoteOrigin: AllowRemoteMiddlware {
20+
public class AllowRemoteOrigin: RouterMiddleware {
21+
22+
public init () {}
23+
2324
public func handle(request: RouterRequest, response: RouterResponse, next: () -> Void) {
2425

2526
// enable cors

0 commit comments

Comments
 (0)