make the branch authonly

This commit is contained in:
Oliver Gorwits
2019-03-17 20:08:06 +00:00
parent 33f94eac62
commit 46bc2c6feb
4 changed files with 9 additions and 145 deletions

View File

@@ -232,14 +232,6 @@ hook 'after' => sub {
}
};
# forward API calls to AJAX route handlers
any '/api/:type/:identifier/:method' => require_login sub {
vars->{'is_api'} = 1;
my $target =
sprintf '/ajax/content/%s/%s', params->{'type'}, params->{'method'};
forward $target, { tab => params->{'method'}, q => params->{'identifier'} };
};
any qr{.*} => sub {
var('notfound' => true);
status 'not_found';