Skip to content

Conversation

@Chulinuwu
Copy link
Collaborator

Type of Change

  • New features
  • Bug fixes
  • Breaking changes
  • Refactor
  • Documentation updates
  • Other (please specify):

Description

Manage user page

Screenshots or GIFs (if applicable)

image

export async function getAllUsers(token: string) {
try {
const response = await fetch(
'https://sucu-backend-2024-689509857491.asia-southeast1.run.app/api/v1/users',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

อันนี้เอาไปใส่ .env และ .env.example ให้เป็น VITE_API_URL ได้ไหมนะ

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

คิดว่าเราจัด route group แบบแนวๆมี (app) กับ (dashboard) อะไรอย่างงี้ได้นะ

ลองดูแบบแนวๆนี้เป็นตัวอย่างจะได้ไม่ต้องมาเขียน if-else ดัก
Screenshot 2567-12-31 at 13 42 33

@Chulinuwu Chulinuwu closed this Jan 3, 2025
@Chulinuwu Chulinuwu deleted the feat/ManageUser branch January 3, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants