test(api): testing api options to reduce the code as we keep repeating same functions
This commit is contained in:
8
server/globalUtils/routeDefs/options.ts
Normal file
8
server/globalUtils/routeDefs/options.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export const apiOptions = () => {
|
||||||
|
return {
|
||||||
|
tags: ["rfid"],
|
||||||
|
summary: "Add new reader",
|
||||||
|
method: "post",
|
||||||
|
path: "/addreader",
|
||||||
|
};
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user