Skip to content

Commit

Permalink
Merge pull request #13941 from canonical/flask-cred-shop
Browse files Browse the repository at this point in the history
WD-8193 implement credentials/shop as flask view
  • Loading branch information
usamabinnadeem-10 authored Jun 12, 2024
2 parents d194d34 + 417f512 commit db3d19d
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 298 deletions.
12 changes: 0 additions & 12 deletions static/js/src/advantage/credentials/api/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,3 @@ export async function rotateKey(activationKey) {
const data = await response.json();
return data;
}

export async function getExamProducts() {
let response = await fetch("/credentials/exam/products", {
method: "GET",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
return data;
}
2 changes: 0 additions & 2 deletions static/js/src/advantage/credentials/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Integrations } from "@sentry/tracing";
import { ReactQueryDevtools } from "react-query/devtools";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import CredManage from "./components/CredManage";
import CredExamShop from "./components/CredExamShop/CredExamShop";

const oneHour = 1000 * 60 * 60;
const queryClient = new QueryClient({
Expand Down Expand Up @@ -37,7 +36,6 @@ function App() {
<QueryClientProvider client={queryClient}>
<Router basename="/credentials/shop">
<Routes>
<Route path="/" element={<CredExamShop />} />
<Route path="/manage" element={<CredManage />} />
</Routes>
</Router>
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit db3d19d

Please sign in to comment.