mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
fix admin status api handler comments
This commit is contained in:
@@ -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,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`, {
|
||||
|
||||
Reference in New Issue
Block a user