feat: major code refactor, add login and register endpoints with swagger
All checks were successful
Update changelog / changelog (push) Successful in 27s
All checks were successful
Update changelog / changelog (push) Successful in 27s
This commit is contained in:
26
src/schemas/miscSchema.ts
Normal file
26
src/schemas/miscSchema.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* components:
|
||||
* schemas:
|
||||
* ErrorDTO:
|
||||
* type: object
|
||||
* required:
|
||||
* - status
|
||||
* - error
|
||||
* properties:
|
||||
* status:
|
||||
* type: string
|
||||
* default: error
|
||||
* error:
|
||||
* type: string
|
||||
* default: error message
|
||||
* code:
|
||||
* type: string
|
||||
* default: error code (may not be returned for every request)
|
||||
*/
|
||||
export type ErrorDTO = {
|
||||
status: 'error';
|
||||
error: string;
|
||||
code?: string | undefined;
|
||||
};
|
||||
Reference in New Issue
Block a user