Renamed all packages
This commit is contained in:
parent
d18570574a
commit
0df8881028
18 changed files with 22 additions and 22 deletions
|
@ -176,7 +176,7 @@ doch auch in einer Funktion machbar sein.
|
|||
* [ ] Cacher konfigurierbar
|
||||
* [ ] Deps nach mod (dem nachfolger von dep) umziehen, blocked by Go 1.11
|
||||
* [x] Überall echo.NewHTTPError statt c.JSON(Message{}) benutzen
|
||||
* [ ] Bessere Fehlermeldungen wenn das Model was ankommt falsch ist und nicht geparst werden kann
|
||||
* [x] Bessere Fehlermeldungen wenn das Model was ankommt falsch ist und nicht geparst werden kann
|
||||
* [ ] Fehlerhandling irgendwie besser machen. Zb mit "World error messages"? Sprich, die Methode ruft einfach auf obs die entsprechende Fehlermeldung gibt und zeigt sonst 500 an.
|
||||
* [ ] Endpoints neu organisieren? Also zb `namespaces/:nID/lists/:lID/items/:iID` statt einzelnen Endpoints für alles
|
||||
* [ ] Wenn die ID bei irgendeiner GetByID... Methode < 1 ist soll ein error not exist geworfen werden
|
||||
|
|
4
main.go
4
main.go
|
@ -1,8 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"git.kolaente.de/konrad/list/routes"
|
||||
"code.vikunja.io/api/models"
|
||||
"code.vikunja.io/api/routes"
|
||||
|
||||
"context"
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package v1
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package swagger
|
||||
|
||||
import "git.kolaente.de/konrad/list/models"
|
||||
import "code.vikunja.io/api/models"
|
||||
|
||||
// not actually a response, just a hack to get go-swagger to include definitions
|
||||
// of the various XYZOption structs
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package swagger
|
||||
|
||||
import "git.kolaente.de/konrad/list/models"
|
||||
import "code.vikunja.io/api/models"
|
||||
|
||||
// Message
|
||||
// swagger:response Message
|
||||
|
|
|
@ -2,7 +2,7 @@ package v1
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package v1
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package v1
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package v1
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"reflect"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
)
|
||||
|
||||
// WebHandler defines the webhandler object
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
)
|
||||
|
|
|
@ -2,7 +2,7 @@ package crud
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"code.vikunja.io/api/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"reflect"
|
||||
|
|
|
@ -30,10 +30,10 @@ import (
|
|||
"github.com/labstack/echo"
|
||||
"github.com/labstack/echo/middleware"
|
||||
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
apiv1 "git.kolaente.de/konrad/list/routes/api/v1"
|
||||
_ "git.kolaente.de/konrad/list/routes/api/v1/swagger" // for docs generation
|
||||
"git.kolaente.de/konrad/list/routes/crud"
|
||||
"code.vikunja.io/api/models"
|
||||
apiv1 "code.vikunja.io/api/routes/api/v1"
|
||||
_ "code.vikunja.io/api/routes/api/v1/swagger" // for docs generation
|
||||
"code.vikunja.io/api/routes/crud"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue