Fix version route
This commit is contained in:
parent
1f08a77eaf
commit
b707c27734
@ -14,8 +14,8 @@ private func authorize(_ request: Request) throws {
|
||||
|
||||
func routes(_ app: Application) throws {
|
||||
|
||||
app.getCatching("version") { _ in
|
||||
return "\(server.classifierVersion)"
|
||||
app.get("version") { _ in
|
||||
"\(server.classifierVersion)"
|
||||
}
|
||||
|
||||
// Add or change a cap
|
||||
|
11
Training/config.sh
Normal file
11
Training/config.sh
Normal file
@ -0,0 +1,11 @@
|
||||
WORK_DIR="${HOME}/Projects/Caps/Caps-Server/Training"
|
||||
BACKUP_DIR="./backup"
|
||||
IMAGE_DIR="../Public/images"
|
||||
MODEL_FILE="../Public/classifier.mlmodel"
|
||||
|
||||
TRAINING_ITERATIONS="17"
|
||||
SSH_PORT="5432"
|
||||
SERVER="pi@christophhagen.de"
|
||||
SERVER_ROOT_PATH="/data/servers/caps/Public"
|
||||
SERVER_PATH="https://christophhagen.de/caps"
|
||||
SERVER_AUTH="oakqhqiqeuenlakkiwjqfbvbykyquwie"
|
Loading…
Reference in New Issue
Block a user