MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / back

Method back

framework/framework/server.ts:230–233  ·  view source on GitHub ↗
(body?: any)

Source from the content-addressed store, hash-verified

228 __param: Record<string, decorators.ParamOption<any>[]>;
229
230 back(body?: any) {
231 this.response.body = body || this.response.body || {};
232 this.response.redirect = this.request.headers.referer || '/';
233 }
234
235 binary(data: any, name?: string) {
236 this.response.body = data;

Callers 15

postStarMethod · 0.80
postUnstarMethod · 0.80
getMethod · 0.80
getMethod · 0.80
postSetUsersMethod · 0.80
postKickMethod · 0.80
postMethod · 0.80
postAddMethod · 0.80
postDeleteMethod · 0.80
postMethod · 0.80
postDelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected