(req: express.Request, res: express.Response)
| 174 | } |
| 175 | |
| 176 | simpleLayoutHandler(req: express.Request, res: express.Response) { |
| 177 | const state = new ClientState(); |
| 178 | const session = state.findOrCreateSession(1); |
| 179 | session.language = unwrapString(req.query.lang); |
| 180 | session.source = unwrapString(req.query.code); |
| 181 | const compiler = session.findOrCreateCompiler(1); |
| 182 | compiler.id = unwrapString(req.query.compiler); |
| 183 | compiler.options = unwrapString(req.query.compiler_flags) || ''; |
| 184 | |
| 185 | this.renderClientState(state, null, req, res); |
| 186 | } |
| 187 | |
| 188 | renderClientState( |
| 189 | clientstate: ClientState, |
nothing calls this directly
no test coverage detected