2024-05-23 14:12:23 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2023-10-21 06:43:31 -04:00
|
|
|
class HomeController < ApplicationController
|
2025-12-06 10:51:10 -05:00
|
|
|
include ApplicationHelper
|
|
|
|
|
|
2023-10-21 06:43:31 -04:00
|
|
|
def index
|
2025-04-15 15:34:02 -04:00
|
|
|
# redirect_to 'https://dawarich.app', allow_other_host: true and return unless SELF_HOSTED
|
|
|
|
|
|
2025-12-06 10:51:10 -05:00
|
|
|
redirect_to preferred_map_path if current_user
|
2024-03-15 18:27:31 -04:00
|
|
|
|
2025-08-21 16:32:29 -04:00
|
|
|
@points = current_user.points.without_raw_data if current_user
|
2023-10-21 06:43:31 -04:00
|
|
|
end
|
|
|
|
|
end
|