added routes to sumbit the answers

This commit is contained in:
Karma Riuk
2025-05-07 13:05:15 +02:00
parent a693b2d4f8
commit a16435b021
4 changed files with 124 additions and 1 deletions

6
src/utils/errors.js Normal file
View File

@ -0,0 +1,6 @@
export class InvalidJsonFormatError extends Error {
constructor(message = 'JSON must be an object mapping strings to strings') {
super(message);
this.name = 'InvalidJsonFormatError';
}
}