2022-01-11 06:20:32 +00:00
|
|
|
/*
|
|
|
|
* DataBag
|
|
|
|
*
|
|
|
|
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
|
|
|
|
*
|
|
|
|
* API version: 0.0.1
|
|
|
|
* Contact: roland.osborne@gmail.com
|
|
|
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
|
|
|
*/
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"net/http"
|
|
|
|
app "databag/internal"
|
2022-01-13 21:14:30 +00:00
|
|
|
"databag/internal/store"
|
2022-01-11 06:20:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-01-11 18:28:00 +00:00
|
|
|
|
2022-01-12 07:04:27 +00:00
|
|
|
store.SetPath("databag.db");
|
2022-01-11 19:31:45 +00:00
|
|
|
|
2022-01-11 06:20:32 +00:00
|
|
|
log.Printf("Server started")
|
|
|
|
|
2022-01-12 07:04:27 +00:00
|
|
|
router := app.NewRouter()
|
2022-01-11 06:20:32 +00:00
|
|
|
|
|
|
|
log.Fatal(http.ListenAndServe(":7000", router))
|
|
|
|
}
|