+1
src/webapp/api.v
+1
src/webapp/api.v
···
426
426
427
427
@['/api/user/search'; get]
428
428
fn (mut app App) api_user_search(mut ctx Context, query string, limit int, offset int) veb.Result {
429
+
_ := app.whoami(mut ctx) or { return ctx.unauthorized('not logged in') }
429
430
if limit >= search_hard_limit {
430
431
return ctx.text('limit exceeds hard limit (${search_hard_limit})')
431
432
}