mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 11:02:47 +00:00
update legacy names
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"database/sql"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"github.com/mizuw/laterna/server/cmd/internal/logger"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/logger"
|
||||
)
|
||||
|
||||
func ConnectDB() {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/mizuw/laterna/server/cmd/internal/config"
|
||||
"github.com/mizuw/laterna/server/cmd/internal/logger"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/config"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/logger"
|
||||
)
|
||||
|
||||
func StartHTTPServer() {
|
||||
@@ -18,7 +18,7 @@ func StartHTTPServer() {
|
||||
http.ListenAndServe(fmt.Sprintf(":%d", port), router)
|
||||
}
|
||||
|
||||
func createToken(w http.ResponseWriter, r *http.Request) {
|
||||
func createToken(w http.ResponseWriter, r *http.Request) { // temporary, only for testing
|
||||
authHeader := r.Header.Get("Authorization")
|
||||
adminToken := config.AppConfig.HTTP.AdminToken
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/mizuw/laterna/server/cmd/internal/config"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/config"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/mizuw/laterna/server/cmd/internal/config"
|
||||
"github.com/mizuw/laterna/server/cmd/internal/db"
|
||||
"github.com/mizuw/laterna/server/cmd/internal/http"
|
||||
"github.com/mizuw/laterna/server/cmd/internal/logger"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/config"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/db"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/http"
|
||||
"github.com/siestaw/laterna/server/cmd/internal/logger"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user