fix(header): fix missing Divider, Badge, IconUserShield and navigate
This commit is contained in:
@@ -4,7 +4,11 @@ import Elysia from "elysia";
|
||||
import { apiMiddleware } from "../middleware/apiMiddleware";
|
||||
import { auth } from "../utils/auth";
|
||||
import { apikey } from "./apikey";
|
||||
import { complaint } from "./complaint";
|
||||
import { division } from "./division";
|
||||
import { event } from "./event";
|
||||
import { profile } from "./profile";
|
||||
import { resident } from "./resident";
|
||||
|
||||
const isProduction = process.env.NODE_ENV === "production";
|
||||
|
||||
@@ -20,7 +24,11 @@ const api = new Elysia({
|
||||
})
|
||||
.use(apiMiddleware)
|
||||
.use(apikey)
|
||||
.use(profile);
|
||||
.use(profile)
|
||||
.use(division)
|
||||
.use(complaint)
|
||||
.use(resident)
|
||||
.use(event);
|
||||
|
||||
if (!isProduction) {
|
||||
api.use(
|
||||
|
||||
Reference in New Issue
Block a user