Philipp Schrader | ad2a6fb | 2024-03-20 20:51:36 -0700 | [diff] [blame^] | 1 | import {Injectable} from '@angular/core'; |
2 | import {RequestAuthorizer} from './auth_handler'; | ||||
3 | |||||
4 | @Injectable({providedIn: 'root'}) | ||||
5 | export class ActionsSubmitter { | ||||
6 | constructor(private readonly requestAuthorizer: RequestAuthorizer) {} | ||||
7 | |||||
8 | async submit(actionBuffer: Uint8Array): Promise<Response> { | ||||
9 | return this.requestAuthorizer.submit( | ||||
10 | '/requests/submit/submit_2024_actions', | ||||
11 | actionBuffer | ||||
12 | ); | ||||
13 | } | ||||
14 | } |