class DBService extends BasicService {

	@GET
	@Path("/files")
	@Produces(MediaType.APPLICATION_JSON)
	public List<File> getFiles() {
		if (!isDBAdmin()) {
			throwUnauthorized();
		}

		return new FileDAO().getAll("name");
	}

}