Initial commit with decorator router, and some basic subsonic api code
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import {SubsonicErrorCode} from "../../enum/SubsonicErrorCode";
|
||||
import {JsonResponder} from "./json-responder";
|
||||
|
||||
export class JsonPResponder {
|
||||
static renderError(code: SubsonicErrorCode, message: string, callback: string): string {
|
||||
const json = JsonResponder.renderError(code, message);
|
||||
return `${callback}(${json});`;
|
||||
}
|
||||
|
||||
static createResponse(element: string | null): string {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user