mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-30 00:54:47 +02:00
started integrating auth with lucia
This commit is contained in:
parent
a33a8d7367
commit
fc5dca136f
20 changed files with 1341 additions and 61 deletions
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;
|
Loading…
Add table
Add a link
Reference in a new issue