1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-12-04 05:52:03 +03:00
eqMac/native/app/Source/Transition/TransitionDataBus.swift
2020-04-04 19:15:38 +01:00

27 lines
590 B
Swift

//
// MiscRoute.swift
// eqMac
//
// Created by Roman Kisil on 30/04/2018.
// Copyright © 2018 Roman Kisil. All rights reserved.
//
import Foundation
import SwiftyJSON
class TransitionDataBus: DataBus {
required init(route: String, bridge: Bridge) {
super.init(route: route, bridge: bridge)
self.on(.GET, "/") { data, _ in
return [
"fps": Constants.TRANSITION_FPS,
"frameCount": Constants.TRANSITION_FRAME_COUNT,
"frameDuration": Constants.TRANSITION_FRAME_DURATION,
"duration": Constants.TRANSITION_DURATION
]
}
}
}