Adjustments to DeviceManagement.
Some checks failed
Deploy Frontend / deploy (push) Failing after 13s
Some checks failed
Deploy Frontend / deploy (push) Failing after 13s
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,5 +1,4 @@
|
||||
// src/app/admin/devices/page.tsx
|
||||
import { cookies } from 'next/headers';
|
||||
import { requireAuthOrRedirect } from '@/lib/authServer';
|
||||
import axiosServer from '@/lib/axiosServer';
|
||||
import DeviceTableSection from '@/components/admin/DeviceTableSection';
|
||||
@@ -16,8 +15,6 @@ interface DeviceDTO {
|
||||
|
||||
export default async function DeviceManagementPage() {
|
||||
const user = await requireAuthOrRedirect();
|
||||
const cookieStore = await cookies();
|
||||
const token = cookieStore.get('authToken')?.value;
|
||||
|
||||
const res = await axiosServer.get('/admin/devices', {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user