admin(ui): add blank 'create' views

This commit is contained in:
Matthew Penner 2021-01-06 15:39:23 -07:00
parent e7021dfc39
commit d81aef68b5
12 changed files with 201 additions and 16 deletions

View file

@ -0,0 +1,12 @@
import http from '@/api/http';
import { Location } from '@/api/admin/locations/getLocations';
export default (short: string, long?: string): Promise<Location> => {
return new Promise((resolve, reject) => {
http.post('/api/application/locations', {
short, long,
})
.then(({ data }) => resolve(data.attributes))
.catch(reject);
});
};

View file

@ -1,5 +1,5 @@
import { Role } from '@/api/admin/roles/getRoles';
import http from '@/api/http';
import { Role } from '@/api/admin/roles/getRoles';
export default (name: string, description?: string): Promise<Role> => {
return new Promise((resolve, reject) => {