added products endpoint and implement login input fields max length

This commit was merged in pull request #7.
This commit is contained in:
victorAnumudu
2025-09-14 08:16:48 +01:00
parent 82b5ac085d
commit 84f2cdf53f
17 changed files with 538 additions and 375 deletions
+4
View File
@@ -14,6 +14,10 @@ const queryKeys = {
// new
subscriptions: ['subscriptions'],
billings: ['billings'],
right_sidebar: ['right_sidebar'],
recent_signup: ['recent_signup'],
products: ['products'],
users_admin: ['users_admin'],
}
export default queryKeys
+24
View File
@@ -74,6 +74,30 @@ export const getSubscriptions = (reqData) => {
return getAuxEnd(`/subcriptions`, postData)
}
// FUNCTION TO GET RIGHT SIDEBAR DATA
export const getRightSidebar = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/right-sidebar`, postData)
}
// FUNCTION TO GET RECENT SIGNUP DATA
export const getRecentSignup = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/recent-signup`, postData)
}
// FUNCTION TO GET PRODUCTS DATA
export const getProducts = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/products`, postData)
}
// FUNCTION TO GET USERS DATA
export const getUsers = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/users`, postData)
}