return $g->lists_version;
}
-sub invalid_input($details = undef) {
- return exception 400,
- "Invalid input" . ( defined($details) ? " ($details)" : '' );
-}
-
sub exception($http_code, $text) {
status $http_code;
return { exception => $text };
}
+sub invalid_input($details = undef) {
+ return exception 400,
+ "Invalid input" . ( defined($details) ? " ($details)" : '' );
+}
+
1;