fix admin status api handler comments

This commit is contained in:
ml729
2023-01-20 12:59:24 -05:00
parent 0f2a65ea3c
commit 4ccc88e0bb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { withRole } from "src/lib/auth";
/**
* Returns the messages recorded by the backend for a user.
* Returns the message stats.
*/
const handler = withRole("admin", async (req, res) => {
const statsRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/stats/`, {
@@ -1,7 +1,7 @@
import { withRole } from "src/lib/auth";
/**
* Returns the messages recorded by the backend for a user.
* Returns result of tasks availability query using a dummy user.
*/
const handler = withRole("admin", async (req, res) => {
const tasksAvailabilityRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/tasks/availability`, {
+1 -1
View File
@@ -1,7 +1,7 @@
import { withRole } from "src/lib/auth";
/**
* Returns the messages recorded by the backend for a user.
* Returns tree manager stats.
*/
const handler = withRole("admin", async (req, res) => {
const treeManagerRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/stats/tree_manager`, {