xxx
This commit is contained in:
parent
4d7566de9b
commit
2c90044185
@ -16,11 +16,6 @@ class GitApplication(web.Application):
|
||||
def __init__(self, parent=None):
|
||||
self.parent = parent
|
||||
super().__init__(client_max_size=1024*1024*1024*5)
|
||||
self.REPO_DIR = "drive/repositories/3177f85e-dbb3-4406-993e-3d3748fea545"
|
||||
self.USERS = {
|
||||
'x': 'x',
|
||||
'bob': 'bobpass',
|
||||
}
|
||||
self.add_routes([
|
||||
web.post('/create/{repo_name}', self.create_repository),
|
||||
web.delete('/delete/{repo_name}', self.delete_repository),
|
||||
@ -28,7 +23,7 @@ class GitApplication(web.Application):
|
||||
web.post('/push/{repo_name}', self.push_repository),
|
||||
web.post('/pull/{repo_name}', self.pull_repository),
|
||||
web.get('/status/{repo_name}', self.status_repository),
|
||||
web.get('/list', self.list_repositories),
|
||||
#web.get('/list', self.list_repositories),
|
||||
web.get('/branches/{repo_name}', self.list_branches),
|
||||
web.post('/branches/{repo_name}', self.create_branch),
|
||||
web.get('/log/{repo_name}', self.commit_log),
|
||||
|
Loading…
Reference in New Issue
Block a user