We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the api project, create an endpoint to get total number of files associated with an API key.
api
Tech design:
apps/api/lib/media/routes.ts
POST /get/count
The above will call the handler getMediaCount which will be created in the file apps/api/lib/media/handlers.ts.
getMediaCount
apps/api/lib/media/handlers.ts
The getMediaCount method will get the total count of the files associated with the apikey and return it.
Expected response:
{count: 500}
The text was updated successfully, but these errors were encountered:
ravirajput10
No branches or pull requests
In the
api
project, create an endpoint to get total number of files associated with an API key.Tech design:
apps/api/lib/media/routes.ts
file, add the following route:The above will call the handler
getMediaCount
which will be created in the fileapps/api/lib/media/handlers.ts
.The
getMediaCount
method will get the total count of the files associated with the apikey and return it.Expected response:
{count: 500}
The text was updated successfully, but these errors were encountered: