From d8e8d44d4778bfd3f9e63488edc696e004edfb15 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Tue, 2 Mar 2021 18:26:30 +0100 Subject: start implementing db interface --- internal/client/api.go | 28 ---------------------------- internal/client/router.go | 4 ++-- internal/client/service.go | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 internal/client/api.go create mode 100644 internal/client/service.go (limited to 'internal/client') diff --git a/internal/client/api.go b/internal/client/api.go deleted file mode 100644 index 4e6bad863..000000000 --- a/internal/client/api.go +++ /dev/null @@ -1,28 +0,0 @@ -/* - GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -// Package client AAAAAAAAAAAAAAA -package client - -// API is the client API exposed to the outside world for access by front-ends; this is distinct from the federation API -type API interface { -} - -// api implements Api interface -type api struct { -} diff --git a/internal/client/router.go b/internal/client/router.go index b7c68ad0e..cf00419c5 100644 --- a/internal/client/router.go +++ b/internal/client/router.go @@ -39,9 +39,9 @@ func (r *router) Route() { ginRouter.LoadHTMLGlob("web/template/*") apiGroup := ginRouter.Group("/api") - + v1 := apiGroup.Group("/v1") - + statusesGroup := v1.Group("/statuses") statusesGroup.GET(":id", statusGet) ginRouter.Run() diff --git a/internal/client/service.go b/internal/client/service.go new file mode 100644 index 000000000..4e6bad863 --- /dev/null +++ b/internal/client/service.go @@ -0,0 +1,28 @@ +/* + GoToSocial + Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +// Package client AAAAAAAAAAAAAAA +package client + +// API is the client API exposed to the outside world for access by front-ends; this is distinct from the federation API +type API interface { +} + +// api implements Api interface +type api struct { +} -- cgit v1.3