Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get current user route #737

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Add get current user route #737

merged 1 commit into from
Sep 25, 2023

Conversation

a3957273
Copy link
Member

No description provided.

import { UserDoc } from '../../../models/v2/User.js'
import { parse } from '../../../utils/validate.js'

export const getCurrentUserSchema = z.object({})
Copy link
Member

Choose a reason for hiding this comment

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

What does z.object({}) in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

It means the endpoint takes no input.

@a3957273 a3957273 merged commit 8b43de3 into main Sep 25, 2023
@a3957273 a3957273 deleted the feature/get-current-user branch September 25, 2023 12:14
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.

3 participants