mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-14 20:16:38 +00:00
started integrating auth with lucia
This commit is contained in:
19
server/utils/response.ts
Normal file
19
server/utils/response.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ResponseT } from "@server/types/Response";
|
||||
|
||||
export const response = <T>({
|
||||
data,
|
||||
success,
|
||||
error,
|
||||
message,
|
||||
status,
|
||||
}: ResponseT<T>) => {
|
||||
return {
|
||||
data,
|
||||
success,
|
||||
error,
|
||||
message,
|
||||
status,
|
||||
};
|
||||
};
|
||||
|
||||
export default response;
|
||||
Reference in New Issue
Block a user