Skip to content

Commit e93fea1

Browse files
committed
Feat: reorganize the homepage of the backend
1 parent 5e403f1 commit e93fea1

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source 'https://rubygems.org'
44
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
55

6-
ruby '~>3.1.1'
6+
ruby '~>3.0.0'
77

88
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
99
gem 'rails', '~> 7.0.2', '>= 7.0.2.3'

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ DEPENDENCIES
335335
webdrivers
336336

337337
RUBY VERSION
338-
ruby 3.1.1p18
338+
ruby 3.0.3p157
339339

340340
BUNDLED WITH
341-
2.3.10
341+
2.3.9

app/views/clients/home.html.erb

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11

2-
<% if user_signed_in? %>
3-
<%= button_to 'Logout', destroy_user_session_path, method: :delete %>
4-
<% else %>
5-
<%= link_to 'Login', new_user_session_path %>
6-
<%= link_to 'Sign up', new_user_registration_path %>
7-
<% end %>
8-
9-
<div>
10-
<%= link_to 'API documentation', rswag_api_path %>
11-
</div>
12-
132
<div>
14-
<%= @application.as_json %>
3+
<h1>Welcome to Doctor's appointment</h1>
4+
<p>Please click the link below to see the full API docs</p>
5+
<div class="link">
6+
<%= link_to 'API documentation', rswag_api_path %>
7+
</div>
158
</div>
169

1710

config/database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
default: &default
1818
adapter: postgresql
1919
encoding: unicode
20-
username: thecodechaser
21-
password: thecode123
20+
username: postgres
21+
password: m
2222
host: localhost
2323
# host: localhost
2424
# For details on connection pooling, see Rails configuration guide

0 commit comments

Comments
 (0)