Advertisement
tinyevil

Untitled

Feb 17th, 2019
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. api.declare("login", {
  2.   {"session_id", types::I32},
  3.   {"login", types::UTF8},
  4.   {"password", types::UTF8}
  5. }, [](ArgPack& args) {
  6.   auto session = find_session(args['session_id'].as<types::I32>());
  7.   if (!session) {
  8.     return Response::Error("session not found");
  9.   }
  10.   ...
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement