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

Method get

packages/hydrooj/src/handler/manage.ts:138–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136class SystemSettingHandler extends SystemHandler {
137 @requireSudo
138 async get() {
139 this.response.template = 'manage_setting.html';
140 this.response.body.current = {};
141 this.response.body.settings = setting.SYSTEM_SETTINGS;
142 for (const s of this.response.body.settings) {
143 this.response.body.current[s.key] = system.get(s.key);
144 }
145 }
146
147 @requireSudo
148 async post(args: any) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected