mirror of
https://github.com/michivonah/themepark-assistant.git
synced 2025-12-22 22:16:29 +01:00
implement endpoints for list, create & remove of notification methods; move owner check of notification method into own file
This commit is contained in:
parent
60a75f7894
commit
0b11cccf33
8 changed files with 179 additions and 50 deletions
|
|
@ -14,8 +14,12 @@ export class MissingMailError extends HTTPException{
|
|||
}
|
||||
|
||||
export class MissingParameter extends HTTPException{
|
||||
constructor(paramName: string){
|
||||
super(400, { message: `Request parameter '${paramName}' missing` })
|
||||
constructor(paramName?: string){
|
||||
super(400, { message:
|
||||
paramName
|
||||
? `Request parameter '${paramName}' missing`
|
||||
: 'Request parameter missing'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue