tag: move layout into page function

This also allows us to return proper HTTP error codes when something
goes wrong.

Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
John Keeping 2015-08-14 12:47:19 +01:00 committed by Jason A. Donenfeld
parent a3daa41b78
commit 696a33b66f
2 changed files with 11 additions and 4 deletions

2
cmd.c
View file

@ -171,7 +171,7 @@ struct cgit_cmd *cgit_get_cmd(void)
def_cmd(snapshot, 1, 0, 0, 0),
def_cmd(stats, 1, 0, 1, 0),
def_cmd(summary, 1, 0, 0, 0),
def_cmd(tag, 1, 1, 0, 0),
def_cmd(tag, 1, 0, 0, 0),
def_cmd(tree, 1, 1, 1, 0),
};
int i;