From b826fb3ce679a54766080c4ac637ab14ab276c04 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 16 Aug 2023 03:12:25 +0200 Subject: [PATCH] chore: move backend routes to v1/ subdirectory --- backend/routes.go | 12 ++++++------ backend/routes/{ => v1}/auth/captcha.go | 0 backend/routes/{ => v1}/auth/discord.go | 0 backend/routes/{ => v1}/auth/fedi_mastodon.go | 0 backend/routes/{ => v1}/auth/fedi_misskey.go | 0 backend/routes/{ => v1}/auth/fedi_nodeinfo.go | 0 backend/routes/{ => v1}/auth/fediverse.go | 0 backend/routes/{ => v1}/auth/google.go | 0 backend/routes/{ => v1}/auth/invite.go | 0 backend/routes/{ => v1}/auth/oauth.go | 0 backend/routes/{ => v1}/auth/routes.go | 0 backend/routes/{ => v1}/auth/tokens.go | 0 backend/routes/{ => v1}/auth/tumblr.go | 0 backend/routes/{ => v1}/auth/undelete.go | 0 backend/routes/{ => v1}/bot/bot.go | 0 backend/routes/{ => v1}/member/create_member.go | 0 backend/routes/{ => v1}/member/delete_member.go | 0 backend/routes/{ => v1}/member/get_member.go | 0 backend/routes/{ => v1}/member/get_members.go | 0 backend/routes/{ => v1}/member/patch_member.go | 0 backend/routes/{ => v1}/member/routes.go | 0 backend/routes/{ => v1}/meta/meta.go | 0 backend/routes/{ => v1}/mod/create_report.go | 0 backend/routes/{ => v1}/mod/get_reports.go | 0 backend/routes/{ => v1}/mod/resolve_report.go | 0 backend/routes/{ => v1}/mod/routes.go | 0 backend/routes/{ => v1}/mod/warnings.go | 0 backend/routes/{ => v1}/user/delete_user.go | 0 backend/routes/{ => v1}/user/export.go | 0 backend/routes/{ => v1}/user/flags.go | 0 backend/routes/{ => v1}/user/get_user.go | 0 backend/routes/{ => v1}/user/patch_user.go | 0 backend/routes/{ => v1}/user/routes.go | 0 33 files changed, 6 insertions(+), 6 deletions(-) rename backend/routes/{ => v1}/auth/captcha.go (100%) rename backend/routes/{ => v1}/auth/discord.go (100%) rename backend/routes/{ => v1}/auth/fedi_mastodon.go (100%) rename backend/routes/{ => v1}/auth/fedi_misskey.go (100%) rename backend/routes/{ => v1}/auth/fedi_nodeinfo.go (100%) rename backend/routes/{ => v1}/auth/fediverse.go (100%) rename backend/routes/{ => v1}/auth/google.go (100%) rename backend/routes/{ => v1}/auth/invite.go (100%) rename backend/routes/{ => v1}/auth/oauth.go (100%) rename backend/routes/{ => v1}/auth/routes.go (100%) rename backend/routes/{ => v1}/auth/tokens.go (100%) rename backend/routes/{ => v1}/auth/tumblr.go (100%) rename backend/routes/{ => v1}/auth/undelete.go (100%) rename backend/routes/{ => v1}/bot/bot.go (100%) rename backend/routes/{ => v1}/member/create_member.go (100%) rename backend/routes/{ => v1}/member/delete_member.go (100%) rename backend/routes/{ => v1}/member/get_member.go (100%) rename backend/routes/{ => v1}/member/get_members.go (100%) rename backend/routes/{ => v1}/member/patch_member.go (100%) rename backend/routes/{ => v1}/member/routes.go (100%) rename backend/routes/{ => v1}/meta/meta.go (100%) rename backend/routes/{ => v1}/mod/create_report.go (100%) rename backend/routes/{ => v1}/mod/get_reports.go (100%) rename backend/routes/{ => v1}/mod/resolve_report.go (100%) rename backend/routes/{ => v1}/mod/routes.go (100%) rename backend/routes/{ => v1}/mod/warnings.go (100%) rename backend/routes/{ => v1}/user/delete_user.go (100%) rename backend/routes/{ => v1}/user/export.go (100%) rename backend/routes/{ => v1}/user/flags.go (100%) rename backend/routes/{ => v1}/user/get_user.go (100%) rename backend/routes/{ => v1}/user/patch_user.go (100%) rename backend/routes/{ => v1}/user/routes.go (100%) diff --git a/backend/routes.go b/backend/routes.go index 0f9c90c..c95da85 100644 --- a/backend/routes.go +++ b/backend/routes.go @@ -3,12 +3,12 @@ package backend import ( "net/http" - "codeberg.org/pronounscc/pronouns.cc/backend/routes/auth" - "codeberg.org/pronounscc/pronouns.cc/backend/routes/bot" - "codeberg.org/pronounscc/pronouns.cc/backend/routes/member" - "codeberg.org/pronounscc/pronouns.cc/backend/routes/meta" - "codeberg.org/pronounscc/pronouns.cc/backend/routes/mod" - "codeberg.org/pronounscc/pronouns.cc/backend/routes/user" + "codeberg.org/pronounscc/pronouns.cc/backend/routes/v1/auth" + "codeberg.org/pronounscc/pronouns.cc/backend/routes/v1/bot" + "codeberg.org/pronounscc/pronouns.cc/backend/routes/v1/member" + "codeberg.org/pronounscc/pronouns.cc/backend/routes/v1/meta" + "codeberg.org/pronounscc/pronouns.cc/backend/routes/v1/mod" + "codeberg.org/pronounscc/pronouns.cc/backend/routes/v1/user" "codeberg.org/pronounscc/pronouns.cc/backend/server" "github.com/go-chi/chi/v5" "github.com/go-chi/render" diff --git a/backend/routes/auth/captcha.go b/backend/routes/v1/auth/captcha.go similarity index 100% rename from backend/routes/auth/captcha.go rename to backend/routes/v1/auth/captcha.go diff --git a/backend/routes/auth/discord.go b/backend/routes/v1/auth/discord.go similarity index 100% rename from backend/routes/auth/discord.go rename to backend/routes/v1/auth/discord.go diff --git a/backend/routes/auth/fedi_mastodon.go b/backend/routes/v1/auth/fedi_mastodon.go similarity index 100% rename from backend/routes/auth/fedi_mastodon.go rename to backend/routes/v1/auth/fedi_mastodon.go diff --git a/backend/routes/auth/fedi_misskey.go b/backend/routes/v1/auth/fedi_misskey.go similarity index 100% rename from backend/routes/auth/fedi_misskey.go rename to backend/routes/v1/auth/fedi_misskey.go diff --git a/backend/routes/auth/fedi_nodeinfo.go b/backend/routes/v1/auth/fedi_nodeinfo.go similarity index 100% rename from backend/routes/auth/fedi_nodeinfo.go rename to backend/routes/v1/auth/fedi_nodeinfo.go diff --git a/backend/routes/auth/fediverse.go b/backend/routes/v1/auth/fediverse.go similarity index 100% rename from backend/routes/auth/fediverse.go rename to backend/routes/v1/auth/fediverse.go diff --git a/backend/routes/auth/google.go b/backend/routes/v1/auth/google.go similarity index 100% rename from backend/routes/auth/google.go rename to backend/routes/v1/auth/google.go diff --git a/backend/routes/auth/invite.go b/backend/routes/v1/auth/invite.go similarity index 100% rename from backend/routes/auth/invite.go rename to backend/routes/v1/auth/invite.go diff --git a/backend/routes/auth/oauth.go b/backend/routes/v1/auth/oauth.go similarity index 100% rename from backend/routes/auth/oauth.go rename to backend/routes/v1/auth/oauth.go diff --git a/backend/routes/auth/routes.go b/backend/routes/v1/auth/routes.go similarity index 100% rename from backend/routes/auth/routes.go rename to backend/routes/v1/auth/routes.go diff --git a/backend/routes/auth/tokens.go b/backend/routes/v1/auth/tokens.go similarity index 100% rename from backend/routes/auth/tokens.go rename to backend/routes/v1/auth/tokens.go diff --git a/backend/routes/auth/tumblr.go b/backend/routes/v1/auth/tumblr.go similarity index 100% rename from backend/routes/auth/tumblr.go rename to backend/routes/v1/auth/tumblr.go diff --git a/backend/routes/auth/undelete.go b/backend/routes/v1/auth/undelete.go similarity index 100% rename from backend/routes/auth/undelete.go rename to backend/routes/v1/auth/undelete.go diff --git a/backend/routes/bot/bot.go b/backend/routes/v1/bot/bot.go similarity index 100% rename from backend/routes/bot/bot.go rename to backend/routes/v1/bot/bot.go diff --git a/backend/routes/member/create_member.go b/backend/routes/v1/member/create_member.go similarity index 100% rename from backend/routes/member/create_member.go rename to backend/routes/v1/member/create_member.go diff --git a/backend/routes/member/delete_member.go b/backend/routes/v1/member/delete_member.go similarity index 100% rename from backend/routes/member/delete_member.go rename to backend/routes/v1/member/delete_member.go diff --git a/backend/routes/member/get_member.go b/backend/routes/v1/member/get_member.go similarity index 100% rename from backend/routes/member/get_member.go rename to backend/routes/v1/member/get_member.go diff --git a/backend/routes/member/get_members.go b/backend/routes/v1/member/get_members.go similarity index 100% rename from backend/routes/member/get_members.go rename to backend/routes/v1/member/get_members.go diff --git a/backend/routes/member/patch_member.go b/backend/routes/v1/member/patch_member.go similarity index 100% rename from backend/routes/member/patch_member.go rename to backend/routes/v1/member/patch_member.go diff --git a/backend/routes/member/routes.go b/backend/routes/v1/member/routes.go similarity index 100% rename from backend/routes/member/routes.go rename to backend/routes/v1/member/routes.go diff --git a/backend/routes/meta/meta.go b/backend/routes/v1/meta/meta.go similarity index 100% rename from backend/routes/meta/meta.go rename to backend/routes/v1/meta/meta.go diff --git a/backend/routes/mod/create_report.go b/backend/routes/v1/mod/create_report.go similarity index 100% rename from backend/routes/mod/create_report.go rename to backend/routes/v1/mod/create_report.go diff --git a/backend/routes/mod/get_reports.go b/backend/routes/v1/mod/get_reports.go similarity index 100% rename from backend/routes/mod/get_reports.go rename to backend/routes/v1/mod/get_reports.go diff --git a/backend/routes/mod/resolve_report.go b/backend/routes/v1/mod/resolve_report.go similarity index 100% rename from backend/routes/mod/resolve_report.go rename to backend/routes/v1/mod/resolve_report.go diff --git a/backend/routes/mod/routes.go b/backend/routes/v1/mod/routes.go similarity index 100% rename from backend/routes/mod/routes.go rename to backend/routes/v1/mod/routes.go diff --git a/backend/routes/mod/warnings.go b/backend/routes/v1/mod/warnings.go similarity index 100% rename from backend/routes/mod/warnings.go rename to backend/routes/v1/mod/warnings.go diff --git a/backend/routes/user/delete_user.go b/backend/routes/v1/user/delete_user.go similarity index 100% rename from backend/routes/user/delete_user.go rename to backend/routes/v1/user/delete_user.go diff --git a/backend/routes/user/export.go b/backend/routes/v1/user/export.go similarity index 100% rename from backend/routes/user/export.go rename to backend/routes/v1/user/export.go diff --git a/backend/routes/user/flags.go b/backend/routes/v1/user/flags.go similarity index 100% rename from backend/routes/user/flags.go rename to backend/routes/v1/user/flags.go diff --git a/backend/routes/user/get_user.go b/backend/routes/v1/user/get_user.go similarity index 100% rename from backend/routes/user/get_user.go rename to backend/routes/v1/user/get_user.go diff --git a/backend/routes/user/patch_user.go b/backend/routes/v1/user/patch_user.go similarity index 100% rename from backend/routes/user/patch_user.go rename to backend/routes/v1/user/patch_user.go diff --git a/backend/routes/user/routes.go b/backend/routes/v1/user/routes.go similarity index 100% rename from backend/routes/user/routes.go rename to backend/routes/v1/user/routes.go