mirror of
https://git.zx2c4.com/cgit
synced 2025-08-30 14:39:34 +02:00
stats: move layout into page function
This also allows us to return proper HTTP error codes for invalid requests. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
6d39dd1914
commit
892c5441f4
2 changed files with 7 additions and 3 deletions
2
cmd.c
2
cmd.c
|
@ -169,7 +169,7 @@ struct cgit_cmd *cgit_get_cmd(void)
|
|||
def_cmd(refs, 1, 0, 0, 0),
|
||||
def_cmd(repolist, 0, 0, 0, 0),
|
||||
def_cmd(snapshot, 1, 0, 0, 0),
|
||||
def_cmd(stats, 1, 1, 1, 0),
|
||||
def_cmd(stats, 1, 0, 1, 0),
|
||||
def_cmd(summary, 1, 1, 0, 0),
|
||||
def_cmd(tag, 1, 1, 0, 0),
|
||||
def_cmd(tree, 1, 1, 1, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue