func createDB(w http.ResponseWriter, r *http.Request) {
	path := r.FormValue("path")
	_, dbPath, code, err := dbs.CreateDB(path)
	if err != nil {
		returnError(w, err, "", code)
		return
	}
	w.WriteHeader(code)
	response := struct {
		DBPath string `json:"dbPath"`
	}{dbPath}
	escapeRecords(&response)
	json.NewEncoder(w).Encode(response)
}
Params: path
Return:
{
"dbPath": str
}
package web
import (
	"encoding/json"
	"fmt"
	"net/http"
	"regexp"
	"github.com/ShoshinNikita/log"
	"github.com/ShoshinNikita/boltBrowser/internal/db"
	"github.com/ShoshinNikita/boltBrowser/internal/dbs"
)
func openDB(w http.ResponseWriter, r *http.Request) {
	dbPath := r.FormValue("dbPath")
	readOnly := (r.FormValue("readOnly") == "true")
	reg := regexp.MustCompile(`\\\\|\\`)
	dbPath = reg.ReplaceAllString(dbPath, "/")
	_, code, err := dbs.OpenDB(dbPath, readOnly)
	if err != nil {
		returnError(w, err, "", code)
		return
	}
	w.WriteHeader(code)
	response := struct {
		DBPath string `json:"dbPath"`
	}{dbPath}
	escapeRecords(&response)
	json.NewEncoder(w).Encode(response)
}