@maybe_login_required
def get(self):
    '\n        ---\n        description: Get a list of commits.\n        responses:\n            "200": "CommitList"\n            "401": "401"\n        tags:\n          - Commits\n        '
    commits = Commit.all(order_by=Commit.timestamp.desc(), limit=500)
    return self.serializer.many.dump(commits)
---
description: Get a list of commits.
responses:
    "200": "CommitList"
    "401": "401"
tags:
  - Commits
@maybe_login_required
def get(self):
    '\n        ---\n        description: Get a list of commits.\n        responses:\n            "200": "CommitList"\n            "401": "401"\n        tags:\n          - Commits\n        '
    commits = Commit.all(order_by=Commit.timestamp.desc(), limit=500)
    return self.serializer.many.dump(commits)