refactor(backend): remove auth for public API
Deploy to VPS / deploy (push) Failing after 35s
Deploy to VPS / deploy (push) Failing after 35s
- Remove auth module (auth.routes.ts, /api/auth/login) - Remove adminAuth middleware from voice and media routes - Remove adminAuth() function from shared middlewares - Remove auth-related e2e test - Clean up .env.example
This commit is contained in:
@@ -62,16 +62,6 @@ describe("API Config", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("API Auth", () => {
|
||||
it("POST /auth/login with wrong password returns 401", async () => {
|
||||
const { status } = await api("/auth/login", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ password: "wrong" }),
|
||||
});
|
||||
expect(status).toBe(401);
|
||||
});
|
||||
});
|
||||
|
||||
describe("API Voice", () => {
|
||||
it("GET /guilds returns 200", async () => {
|
||||
const { status } = await api("/guilds");
|
||||
|
||||
Reference in New Issue
Block a user