forked from vieter-v/vieter
Updated CI Dockerfile; fixed formatting & vet
This commit is contained in:
parent
6194a3f408
commit
27f59c6664
7 changed files with 21 additions and 11 deletions
|
|
@ -42,7 +42,7 @@ fn write_repos(path string, repos []GitRepo) ? {
|
|||
}
|
||||
|
||||
['/api/repos'; get]
|
||||
pub fn (mut app App) get_repos() web.Result {
|
||||
fn (mut app App) get_repos() web.Result {
|
||||
if !app.is_authorized() {
|
||||
return app.text('Unauthorized.')
|
||||
}
|
||||
|
|
@ -59,7 +59,7 @@ pub fn (mut app App) get_repos() web.Result {
|
|||
}
|
||||
|
||||
['/api/repos'; post]
|
||||
pub fn (mut app App) post_repo() web.Result {
|
||||
fn (mut app App) post_repo() web.Result {
|
||||
if !app.is_authorized() {
|
||||
return app.text('Unauthorized.')
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ pub fn (mut app App) post_repo() web.Result {
|
|||
}
|
||||
|
||||
['/api/repos'; delete]
|
||||
pub fn (mut app App) delete_repo() web.Result {
|
||||
fn (mut app App) delete_repo() web.Result {
|
||||
if !app.is_authorized() {
|
||||
return app.text('Unauthorized.')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pub mut:
|
|||
git_mutex shared util.Dummy
|
||||
}
|
||||
|
||||
// server starts the web server & starts listening for requests
|
||||
pub fn server() ? {
|
||||
conf := env.load<env.ServerConfig>() ?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue