Add a REST API endpoint for getting project configuration

To start, only expose the inheritable booleans stored in the project
config, and only to users who can see refs/meta/config.

Change-Id: I299a5317fb641e84b899f8240764c4902a34c72a
This commit is contained in:
Dave Borowitz
2013-04-04 16:52:27 -07:00
parent 2edf0ee8fe
commit 237073a9b0
3 changed files with 110 additions and 0 deletions

View File

@@ -51,5 +51,7 @@ public class Module extends RestApiModule {
put(DASHBOARD_KIND).to(SetDashboard.class);
delete(DASHBOARD_KIND).to(DeleteDashboard.class);
install(new FactoryModuleBuilder().build(CreateProject.Factory.class));
get(PROJECT_KIND, "config").to(GetConfig.class);
}
}