Skip to content

Commit

Permalink
preload fonts, modify register API response
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Apr 2, 2024
1 parent cb9ecf5 commit c574f41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="preload" as="font" href="/fonts/Onest/static/Onest-Regular.ttf" type="font/ttf" crossorigin>
<link rel="preload" as="font" href="/fonts/Onest/static/Onest-Medium.ttf" type="font/ttf" crossorigin>
<link rel="preload" as="font" href="/fonts/Onest/static/Onest-SemiBold.ttf" type="font/ttf" crossorigin>
<link rel="preload" as="font" href="/fonts/Onest/static/Onest-Bold.ttf" type="font/ttf" crossorigin>
<link rel="preload" as="image" href="/logo.png" />

<link rel="icon" type="image/png" href="/logo.png" />
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ exports.register = async function (fastify, request, reply) {
const token = jwt.sign({ userId: username }, process.env.JWT_SECRET, { expiresIn: '12h' });
return reply.code(201).send({
success: true,
message: 'User account created successfully.',
message: 'Account created successfully.',
data: {
user: { email, avatar: avatarPath, username, first_name, last_name },
token
Expand Down

0 comments on commit c574f41

Please sign in to comment.