Skip to content

Commit

Permalink
Update ToriAllowRemoteOrigin.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocrippa authored Aug 21, 2016
1 parent c4adca5 commit 074eb18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/ToriAllowRemoteOrigin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
**/

import Foundation

import Kitura

private typealias AllowRemoteMiddlware = RouterMiddleware
public class AllowRemoteOrigin: AllowRemoteMiddlware {
public class AllowRemoteOrigin: RouterMiddleware {

public init () {}

public func handle(request: RouterRequest, response: RouterResponse, next: () -> Void) {

// enable cors
Expand Down

0 comments on commit 074eb18

Please sign in to comment.