Begin Scrobbles view
This commit is contained in:
parent
1809a12a8c
commit
692320a1d2
4 changed files with 15 additions and 11 deletions
|
|
@ -7,8 +7,12 @@ pub fn index(request: *jetzig.Request, data: *jetzig.Data) !jetzig.View {
|
|||
}
|
||||
|
||||
pub fn get(id: []const u8, request: *jetzig.Request, data: *jetzig.Data) !jetzig.View {
|
||||
_ = data;
|
||||
_ = id;
|
||||
var root = try request.data(.object);
|
||||
const params = try request.params();
|
||||
if (params.get("ar")) |param| {
|
||||
const artists = try jetzig.database.Query(.Artists).select(.{.id, .name});
|
||||
const
|
||||
}
|
||||
return request.render(.ok);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue