-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Changelog | ||
|
||
## 1.0.45 (12-01-2021) | ||
|
||
### Frontend | ||
|
||
* Add deletion for admins. | ||
|
||
## 1.0.44 (11-01-2021) | ||
|
||
### Frontend | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import AdminResponse from '@/admin/AdminResponse'; | ||
import HttpClient from '@/http/HttpClient'; | ||
|
||
export default class AdminService { | ||
private static ENDPOINT = '/v1/admins'; | ||
|
||
private constructor() { | ||
// Utility class, does not make sense to have an instance | ||
} | ||
|
||
static async findAll(token: string): Promise<AdminResponse[]> { | ||
const response = await HttpClient.get(AdminService.ENDPOINT, token); | ||
return await response.json(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {RouteRecordRaw} from 'vue-router'; | ||
|
||
const adminRoutes: Array<RouteRecordRaw> = [ | ||
{ | ||
path: '/admin/management', | ||
name: 'AdminManagement', | ||
component: () => import(/* webpackChunkName: "adminManagement" */ './AdminManagement.vue'), | ||
meta: {requiresAuth: true} | ||
}, | ||
{ | ||
path: '/admin/create', | ||
name: 'CreateAdminUser', | ||
component: () => import(/* webpackChunkName: "createAdminUser" */ './CreateAdminUser.vue'), | ||
meta: {requiresAuth: true} | ||
}, | ||
{ | ||
path: '/admin/user/:id', | ||
name: 'EditAdminUser', | ||
component: () => import(/* webpackChunkName: "editAdminUser" */ './EditAdminUser.vue'), | ||
meta: {requiresAuth: true} | ||
} | ||
]; | ||
|
||
export default adminRoutes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters