34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
/* eslint-disable prettier/prettier */
|
|
import type { routes } from './index.ts'
|
|
|
|
export interface ApiDefinition {
|
|
home: typeof routes['home']
|
|
newAccount: {
|
|
create: typeof routes['new_account.create']
|
|
store: typeof routes['new_account.store']
|
|
}
|
|
session: {
|
|
create: typeof routes['session.create']
|
|
store: typeof routes['session.store']
|
|
destroy: typeof routes['session.destroy']
|
|
}
|
|
computers: {
|
|
index: typeof routes['computers.index']
|
|
create: typeof routes['computers.create']
|
|
store: typeof routes['computers.store']
|
|
show: typeof routes['computers.show']
|
|
edit: typeof routes['computers.edit']
|
|
update: typeof routes['computers.update']
|
|
destroy: typeof routes['computers.destroy']
|
|
}
|
|
components: {
|
|
index: typeof routes['components.index']
|
|
create: typeof routes['components.create']
|
|
store: typeof routes['components.store']
|
|
show: typeof routes['components.show']
|
|
edit: typeof routes['components.edit']
|
|
update: typeof routes['components.update']
|
|
destroy: typeof routes['components.destroy']
|
|
}
|
|
}
|