forked from vieter-v/vieter
We must please make vet
This commit is contained in:
parent
a29592ef36
commit
eb57febdd3
4 changed files with 6 additions and 1 deletions
|
|
@ -178,6 +178,8 @@ fn format_entry(key string, value string) string {
|
|||
return '\n%$key%\n$value\n'
|
||||
}
|
||||
|
||||
// full_name returns the properly formatted name for the package, including
|
||||
// version & architecture
|
||||
pub fn (pkg &Pkg) full_name() string {
|
||||
p := pkg.info
|
||||
return '$p.name-$p.version-$p.arch'
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ fn is_pkg_name(s string) bool {
|
|||
return s.contains('.pkg')
|
||||
}
|
||||
|
||||
// healthcheck just returns a string, but can be used to quickly check if the
|
||||
// server is still responsive.
|
||||
['/health'; get]
|
||||
pub fn (mut app App) healthcheck() web.Result {
|
||||
return app.text('Healthy')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue