Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Version path configuration (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti authored Oct 23, 2023
1 parent fff57ce commit f1a148c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Demo/Demo/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

private lazy var turboNavigator = TurboNavigator(delegate: self, pathConfiguration: pathConfiguration)
private lazy var pathConfiguration = PathConfiguration(sources: [
.server(baseURL.appendingPathComponent("/configuration"))
.server(baseURL.appendingPathComponent("/configurations/ios_v1.json"))
])

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
Expand Down
2 changes: 1 addition & 1 deletion Demo/Server/app/controllers/configurations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ConfigurationsController < ApplicationController
def show
def ios_v1
render json: {
settings: [],
rules: [
Expand Down
4 changes: 3 additions & 1 deletion Demo/Server/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
end
end

resource :configuration, only: :show
resources :configurations, only: [] do
get "ios_v1", on: :collection
end

root "dashboards#show"
end

0 comments on commit f1a148c

Please sign in to comment.